About the skill of http server

kelly_he
Posts: 2
Joined: Thu May 18, 2023 2:03 am

About the skill of http server

Postby kelly_he » 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.

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;
Why is it necessary to distinguish between the rest api of RESOURCE and GUI here?

Who is online

Users browsing this forum: No registered users and 77 guests