|
|
@@ -364,6 +364,34 @@ esp_err_t esp_http_client_set_password(esp_http_client_handle_t client, const ch
|
|
|
*/
|
|
|
esp_err_t esp_http_client_set_authtype(esp_http_client_handle_t client, esp_http_client_auth_type_t auth_type);
|
|
|
|
|
|
+/**
|
|
|
+ * @brief Get http request user_data.
|
|
|
+ * The value stored from the esp_http_client_config_t will be written
|
|
|
+ * to the address passed into data.
|
|
|
+ *
|
|
|
+ * @param[in] client The esp_http_client handle
|
|
|
+ * @param[out] data A pointer to the pointer that will be set to user_data.
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ * - ESP_OK
|
|
|
+ * - ESP_ERR_INVALID_ARG
|
|
|
+ */
|
|
|
+esp_err_t esp_http_client_get_user_data(esp_http_client_handle_t client, void **data);
|
|
|
+
|
|
|
+/**
|
|
|
+ * @brief Set http request user_data.
|
|
|
+ * The value passed in +data+ will be available during event callbacks.
|
|
|
+ * No memory management will be performed on the user's behalf.
|
|
|
+ *
|
|
|
+ * @param[in] client The esp_http_client handle
|
|
|
+ * @param[in] data The pointer to the user data
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ * - ESP_OK
|
|
|
+ * - ESP_ERR_INVALID_ARG
|
|
|
+ */
|
|
|
+esp_err_t esp_http_client_set_user_data(esp_http_client_handle_t client, void *data);
|
|
|
+
|
|
|
/**
|
|
|
* @brief Get HTTP client session errno
|
|
|
*
|