HTTP server configuration structure.
This structure holds the configuration parameters for the HTTP server, including the port number, list of request handlers, and the default handler.
Public Attributes#
Port number on which the HTTP server will listen for incoming requests.
Pointer to an array of request handlers. Each handler is associated with a specific URI pattern.
Number of request handlers in the handlers_list array.
Default request handler function to be called when no specific handler matches the request URI.
Idle duration in seconds before the client is considered inactive.
Public Attribute Documentation#
port#
uint16_t sl_http_server_config_t::port
Port number on which the HTTP server will listen for incoming requests.
359
of file components/service/sl_http_server/inc/sl_http_server_types.h
handlers_list#
sl_http_server_handler_t* sl_http_server_config_t::handlers_list
Pointer to an array of request handlers. Each handler is associated with a specific URI pattern.
361
of file components/service/sl_http_server/inc/sl_http_server_types.h
handlers_count#
uint16_t sl_http_server_config_t::handlers_count
Number of request handlers in the handlers_list array.
362
of file components/service/sl_http_server/inc/sl_http_server_types.h
default_handler#
sl_http_request_handler_t sl_http_server_config_t::default_handler
Default request handler function to be called when no specific handler matches the request URI.
364
of file components/service/sl_http_server/inc/sl_http_server_types.h
client_idle_time#
uint16_t sl_http_server_config_t::client_idle_time
Idle duration in seconds before the client is considered inactive.
365
of file components/service/sl_http_server/inc/sl_http_server_types.h