esp-idf/components/esp_http_server/src
Chip Weinberger 3824eba04d
feat(httpd): add support for asynchronous request handling
This commit adds support for handling multiple requests simultaneously by introducing two new functions: `httpd_req_async_handler_begin()` and `httpd_req_async_handler_complete()`. These functions allow creating an asynchronous copy of a request that can be used on a separate thread and marking the asynchronous request as completed, respectively.

Additionally, a new flag `for_async_req` has been added to the `httpd_sess_t` struct to indicate if a socket is being used for an asynchronous request and should not be purged from the LRU cache.

An example have been added to demonstrate the usage of these new functions.

Closes https://github.com/espressif/esp-idf/issues/10594

Signed-off-by: Harshit Malpani <harshit.malpani@espressif.com>
2023-05-19 10:05:42 +05:30
..
port esp_http_server: Update to support build for Linux 2023-03-31 16:42:05 +05:30
util esp_http_server: Update to support build for Linux 2023-03-31 16:42:05 +05:30
esp_httpd_priv.h feat(httpd): add support for asynchronous request handling 2023-05-19 10:05:42 +05:30
httpd_main.c esp_http_server: Update to support build for Linux 2023-03-31 16:42:05 +05:30
httpd_parse.c esp_http_server: Update to support build for Linux 2023-03-31 16:42:05 +05:30
httpd_sess.c feat(httpd): add support for asynchronous request handling 2023-05-19 10:05:42 +05:30
httpd_txrx.c feat(httpd): add support for asynchronous request handling 2023-05-19 10:05:42 +05:30
httpd_uri.c esp-tls, esp_http_client and esp_http_server: update copyright notice 2021-05-31 20:06:09 +08:00
httpd_ws.c esp_http_server: Update to support build for Linux 2023-03-31 16:42:05 +05:30