esp-idf/components/esp_http_server
Anurag Kar 28412d8cb6 http_server : Added feature for invoking user configurable handlers during server errors
Added APIs :
  * httpd_resp_send_err()        : for sending HTTP error responses for error codes given by httpd_err_code_t. It uses TCP_NODELAY option to ensure that HTTP error responses reach the client before socket is closed.
  * httpd_register_err_handler() : for registering HTTP error handler functions of type httpd_err_handler_func_t.

The default behavior, on encountering errors during processing of HTTP requests, is now to send HTTP error response (if possible) and close the underlying socket. User configurable handlers can be used to override this behavior for each error individually (except for 500 Internal Server Error).

Also fixed some typos.

Closes https://github.com/espressif/esp-idf/issues/3005
2019-02-25 09:13:39 +00:00
..
include http_server : Added feature for invoking user configurable handlers during server errors 2019-02-25 09:13:39 +00:00
src http_server : Added feature for invoking user configurable handlers during server errors 2019-02-25 09:13:39 +00:00
test HTTP Server : Unit test added for httpd_uri_match_wildcard() function as given in https://github.com/espressif/esp-idf/pull/2581#issuecomment-430788473 2019-01-14 08:59:55 +05:30
CMakeLists.txt HTTP Server : Added esp_ prefix to http_server component files 2018-10-24 17:32:20 +05:30
component.mk HTTP Server : Added esp_ prefix to http_server component files 2018-10-24 17:32:20 +05:30
Kconfig http_server : Added feature for invoking user configurable handlers during server errors 2019-02-25 09:13:39 +00:00