feat(http_server): Added API to get scratch buffer data

1. Added the API in esp_http_server to get the raw headers data
from the scratch buffer.
2. This data will be unparsed.

Closes https://github.com/espressif/esp-idf/issues/15857
This commit is contained in:
hrushikesh.bhosale
2025-06-05 12:08:12 +05:30
parent d73e172d31
commit 9f6ab55a5b
6 changed files with 103 additions and 1 deletions

View File

@@ -127,6 +127,7 @@ struct httpd_data {
struct httpd_req hd_req; /*!< The current HTTPD request */
struct httpd_req_aux hd_req_aux; /*!< Additional data about the HTTPD request kept unexposed */
uint64_t lru_counter; /*!< LRU counter */
esp_http_server_event_id_t http_server_state; /*!< HTTPD server state */
/* Array of registered error handler functions */
httpd_err_handler_func_t *err_handler_fns;