mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-23 17:17:14 +00:00
esp_http_client: Add API to set http client timeout value
Closes https://github.com/espressif/esp-idf/issues/6984
This commit is contained in:
@@ -360,6 +360,18 @@ esp_err_t esp_http_client_set_authtype(esp_http_client_handle_t client, esp_http
|
||||
*/
|
||||
esp_err_t esp_http_client_set_method(esp_http_client_handle_t client, esp_http_client_method_t method);
|
||||
|
||||
/**
|
||||
* @brief Set http request timeout
|
||||
*
|
||||
* @param[in] client The esp_http_client handle
|
||||
* @param[in] timeout_ms The timeout value
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK
|
||||
* - ESP_ERR_INVALID_ARG
|
||||
*/
|
||||
esp_err_t esp_http_client_set_timeout_ms(esp_http_client_handle_t client, int timeout_ms);
|
||||
|
||||
/**
|
||||
* @brief Delete http request header
|
||||
*
|
||||
|
Reference in New Issue
Block a user