esp_http_client: add a get HTTP client session errno api for esp_http_client

This commit is contained in:
xutao
2021-11-10 12:09:27 +08:00
committed by bot
parent f41494f5a4
commit 10377ce2ff
2 changed files with 20 additions and 0 deletions

View File

@@ -344,6 +344,17 @@ esp_err_t esp_http_client_set_password(esp_http_client_handle_t client, const ch
*/
esp_err_t esp_http_client_set_authtype(esp_http_client_handle_t client, esp_http_client_auth_type_t auth_type);
/**
* @brief Get HTTP client session errno
*
* @param[in] client The esp_http_client handle
*
* @return
* - (-1) if invalid argument
* - errno
*/
int esp_http_client_get_errno(esp_http_client_handle_t client);
/**
* @brief Set http request method
*