OVMS3-idf/components/esp_http_server
Ondřej Hruška 13a1f4ed78 esp_http_server improvements to allow adding transport layer encryption
Changes:
- renamed `httpd_free_sess_ctx_fn_t` to `httpd_free_ctx_fn_t`
- added a `httpd_handle_t` argument to `httpd_send_func_t` and `httpd_recv_func_t`
- internal function `httpd_sess_get()` is no longer static, as it's used in other
  files besides httpd_sess.c

Bug fixes:
- removed a trailing semicolon from `HTTPD_DEFAULT_CONFIG()`
- fixed issue with failed `select()`, now it automatically closes invalid sockets
  instead of shutting down the entire server

New features:
- `httpd_resp_send()` and `httpd_resp_send_chunk()` now accept -1 as length to use
  `strlen()` internally
- added `httpd_sess_set_ctx()` to accompany `httpd_sess_get_ctx()`
- added a "transport context" to the session structure (next to user context)
- added `httpd_sess_{get,set}_transport_ctx()` to work with this transport context
- added "global user context" and "global transport context" stored in the server
  config (and then the handle); supports a user-provided free_fn
- added a "pending func" to e.g. check for data in the transport layer receive
  buffer
- added functions `httpd_set_sess_{send,recv,pending}_override()` that target
  a session by ID (i.e. not using a request object)
- added `httpd_set_pending_override()`
- added a "open_fn" and "close_fn" - functions called when creating and closing
  a session. These may be used to set up transport layer encryption or some other
  session-wide feature
2019-02-03 21:32:07 +05:30
..
include esp_http_server improvements to allow adding transport layer encryption 2019-02-03 21:32:07 +05:30
src esp_http_server improvements to allow adding transport layer encryption 2019-02-03 21:32:07 +05:30
test HTTP Server : Added esp_ prefix to http_server component files 2018-10-24 17:32:20 +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 esp_ prefix to http_server component files 2018-10-24 17:32:20 +05:30