]> granicus.if.org Git - esp-idf/commit
esp_http_server: Provide apps an option to let http_server ignore sess_ctx changes
authorPiyush Shah <piyush@espressif.com>
Mon, 4 Mar 2019 18:51:03 +0000 (00:21 +0530)
committerPiyush Shah <piyush@espressif.com>
Mon, 4 Mar 2019 18:51:03 +0000 (00:21 +0530)
commitf28f4016cbc2201c99f35dee6a9c810dbe56171e
tree8ef37d14f5af80ea301a456a4fc6d9fba938f385
parentdace2d6bc51294e32f78704fd12a36cfdd472143
esp_http_server: Provide apps an option to let http_server ignore sess_ctx changes

By default, if a URI handler changes the http session context,
the webserver internally clears the older context after the handler
returns. However, if applications want to change this behavior and
manage the allocation/de-allocation/freeing themselves and let the
server handle only the "socket close" case, this commit provides such
an option.
components/esp_http_server/include/esp_http_server.h
components/esp_http_server/src/esp_httpd_priv.h
components/esp_http_server/src/httpd_parse.c