Skip to main content

esp_http_client_clear_response_buffer

Function esp_http_client_clear_response_buffer 

Source
pub unsafe extern "C" fn esp_http_client_clear_response_buffer(
    client: esp_http_client_handle_t,
) -> esp_err_t
Expand description

@brief Clear cached response buffer (e.g. data received during fetch headers). Use this when reusing the same client handle for a new request after closing the connection, so the next request does not see stale data.

@param[in] client The esp_http_client handle

@return - ESP_OK - ESP_ERR_INVALID_ARG if client is NULL