Function esp_idf_svc::sys::esp_http_client_cancel_request
source ยท pub unsafe extern "C" fn esp_http_client_cancel_request(
client: *mut esp_http_client,
) -> i32
Expand description
@brief Cancel an ongoing HTTP request. This API closes the current socket and opens a new socket with the same esp_http_client context.
@param client The esp_http_client handle @return
- ESP_OK on successful
- ESP_FAIL on error
- ESP_ERR_INVALID_ARG
- ESP_ERR_INVALID_STATE