Function esp_idf_sys::esp_http_client_set_auth_data
source ยท pub unsafe extern "C" fn esp_http_client_set_auth_data(
client: esp_http_client_handle_t,
auth_data: *const c_char,
len: c_int,
) -> esp_err_t
Expand description
@brief On receiving a custom authentication header, this API can be invoked to set the authentication information from the header. This API can be called from the event handler.
@param[in] client The esp_http_client handle @param[in] auth_data The authentication data received in the header @param[in] len length of auth_data.
@return - ESP_ERR_INVALID_ARG - ESP_OK