mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-07 09:02:08 +00:00
esp_http_client: Added event for HTTP redirect
- Allows users to manually intercept and process the HTTP redirection when disable_auto_redirect (from the esp_http_client handle) is set to true Closes https://github.com/espressif/esp-idf/issues/8029
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -35,6 +35,7 @@ typedef enum {
|
||||
HTTP_EVENT_ON_DATA, /*!< Occurs when receiving data from the server, possibly multiple portions of the packet */
|
||||
HTTP_EVENT_ON_FINISH, /*!< Occurs when finish a HTTP session */
|
||||
HTTP_EVENT_DISCONNECTED, /*!< The connection has been disconnected */
|
||||
HTTP_EVENT_REDIRECT, /*!< Intercepting HTTP redirects to handle them manually */
|
||||
} esp_http_client_event_id_t;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user