Function esp_idf_svc::hal::sys::esp_http_client_get_header
source ยท pub unsafe extern "C" fn esp_http_client_get_header(
client: *mut esp_http_client,
key: *const i8,
value: *mut *mut i8,
) -> i32
Expand description
@brief Get http request header.
The value parameter will be set to NULL if there is no header which is same as
the key specified, otherwise the address of header value will be assigned to value parameter.
This function must be called after esp_http_client_init
.
@param[in] client The esp_http_client handle @param[in] key The header key @param[out] value The header value
@return - ESP_OK - ESP_FAIL