Function esp_idf_sys::esp_http_client_get_header
source ยท pub unsafe extern "C" fn esp_http_client_get_header(
client: esp_http_client_handle_t,
key: *const c_char,
value: *mut *mut c_char,
) -> esp_err_t
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