mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-24 17:27:21 +00:00
esp_http_client: add esp_http_client_set_authtype function
Since currently there are APIs to set url/username/password, it would be good to also allow setting authtype. Link: https://github.com/espressif/esp-idf/issues/4444 Closes https://github.com/espressif/esp-idf/pull/4454 Signed-off-by: Axel Lin <axel.lin@gmail.com>
This commit is contained in:
@@ -307,6 +307,18 @@ esp_err_t esp_http_client_get_password(esp_http_client_handle_t client, char **v
|
||||
*/
|
||||
esp_err_t esp_http_client_set_password(esp_http_client_handle_t client, char *password);
|
||||
|
||||
/**
|
||||
* @brief Set http request auth_type.
|
||||
*
|
||||
* @param[in] client The esp_http_client handle
|
||||
* @param[in] auth_type The esp_http_client auth type
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK
|
||||
* - ESP_ERR_INVALID_ARG
|
||||
*/
|
||||
esp_err_t esp_http_client_set_authtype(esp_http_client_handle_t client, esp_http_client_auth_type_t auth_type);
|
||||
|
||||
/**
|
||||
* @brief Set http request method
|
||||
*
|
||||
|
Reference in New Issue
Block a user