Function esp_idf_sys::esp_http_client_cancel_request

source ยท
pub unsafe extern "C" fn esp_http_client_cancel_request(
    client: esp_http_client_handle_t,
) -> esp_err_t
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