Function esp_idf_svc::sys::esp_http_client_set_header

source ยท
pub unsafe extern "C" fn esp_http_client_set_header(
    client: *mut esp_http_client,
    key: *const i8,
    value: *const i8,
) -> i32
Expand description

@brief Set http request header, this function must be called after esp_http_client_init and before any perform function

@param[in] client The esp_http_client handle @param[in] key The header key @param[in] value The header value

@return

  • ESP_OK
  • ESP_FAIL