Function esp_idf_hal::sys::esp_http_client_flush_response
source ยท pub unsafe extern "C" fn esp_http_client_flush_response(
client: *mut esp_http_client,
len: *mut i32,
) -> i32
Expand description
@brief Process all remaining response data
This uses an internal buffer to repeatedly receive, parse, and discard response data until complete data is processed.
As no additional user-supplied buffer is required, this may be preferrable to esp_http_client_read_response
in situations where the content of the response may be ignored.
@param[in] client The esp_http_client handle @param len Length of data discarded
@return - ESP_OK If successful, len will have discarded length - ESP_FAIL If failed to read response - ESP_ERR_INVALID_ARG If the client is NULL