esp_idf_svc::sys

Function esp_http_client_set_header

Source
pub unsafe extern "C" fn esp_http_client_set_header(
    client: *mut esp_http_client,
    key: *const u8,
    value: *const u8,
) -> 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