Function esp_idf_sys::esp_http_client_cleanup
source · pub unsafe extern "C" fn esp_http_client_cleanup(
client: esp_http_client_handle_t,
) -> esp_err_t
Expand description
@brief This function must be the last function to call for an session. It is the opposite of the esp_http_client_init function and must be called with the same handle as input that a esp_http_client_init call returned. This might close all connections this handle has used and possibly has kept open until now. Don’t call this function if you intend to transfer more files, re-using handles is a key to good performance with esp_http_client.
@param[in] client The esp_http_client handle
@return - ESP_OK - ESP_FAIL