mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge 050ef874ea
into 46acfdce96
This commit is contained in:
commit
3b6594a358
@ -369,6 +369,11 @@ esp_err_t esp_http_client_delete_header(esp_http_client_handle_t client, const c
|
|||||||
return http_header_delete(client->request->headers, key);
|
return http_header_delete(client->request->headers, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
esp_err_t esp_http_client_delete_headers(esp_http_client_handle_t client)
|
||||||
|
{
|
||||||
|
return http_header_clean(client->request->headers);
|
||||||
|
}
|
||||||
|
|
||||||
esp_err_t esp_http_client_get_username(esp_http_client_handle_t client, char **value)
|
esp_err_t esp_http_client_get_username(esp_http_client_handle_t client, char **value)
|
||||||
{
|
{
|
||||||
if (client == NULL || value == NULL) {
|
if (client == NULL || value == NULL) {
|
||||||
|
@ -487,6 +487,17 @@ esp_err_t esp_http_client_set_timeout_ms(esp_http_client_handle_t client, int ti
|
|||||||
*/
|
*/
|
||||||
esp_err_t esp_http_client_delete_header(esp_http_client_handle_t client, const char *key);
|
esp_err_t esp_http_client_delete_header(esp_http_client_handle_t client, const char *key);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Delete all http request headers
|
||||||
|
*
|
||||||
|
* @param[in] client The esp_http_client handle
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
* - ESP_OK
|
||||||
|
* - ESP_FAIL
|
||||||
|
*/
|
||||||
|
esp_err_t esp_http_client_delete_headers(esp_http_client_handle_t client);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This function will be open the connection, write all header strings and return
|
* @brief This function will be open the connection, write all header strings and return
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user