About the skill of http server
Posted: Thu May 18, 2023 2:13 am
I've never implemented an http server on esp32 before, so this is probably a silly question.
I was looking at the web server component of esp-thread-br and didn't quite understand the intent of the following code.
Why is it necessary to distinguish between the rest api of RESOURCE and GUI here?
I was looking at the web server component of esp-thread-br and didn't quite understand the intent of the following code.
Code: Select all
config.max_uri_handlers = (sizeof(s_resource_handlers) + sizeof(s_web_gui_handlers)) / sizeof(httpd_uri_t) + 2;
config.max_resp_headers = (sizeof(s_resource_handlers) + sizeof(s_web_gui_handlers)) / sizeof(httpd_uri_t) + 2;