HTTP server handle used to manage all HTTP server functions.

This structure holds the state and configuration of the HTTP server, including sockets, synchronization events, request and response data, and buffers.

Public Attributes#

Configuration settings for the HTTP server.

int

Socket descriptor for the server.

int

Socket descriptor for the client currently being served.

osEventFlagsId_t

Event ID for the HTTP server, used for synchronization.

Current HTTP request being processed.

char

Buffer for storing the HTTP request.

char *

Pointer to a string containing headers.

uint8_t *

Pointer to the data of the HTTP request.

uint32_t

Length of the request data.

uint32_t

Remaining length of data to be processed in the request.

bool

Flag indicating whether the response has been sent for the current request.

uint32_t

Remaining length of data to be sent in the response.

Public Attribute Documentation#

config#

sl_http_server_config_t sl_http_server_s::config

Configuration settings for the HTTP server.


Definition at line 376 of file components/service/sl_http_server/inc/sl_http_server_types.h

server_socket#

int sl_http_server_s::server_socket

Socket descriptor for the server.


Definition at line 377 of file components/service/sl_http_server/inc/sl_http_server_types.h

client_socket#

int sl_http_server_s::client_socket

Socket descriptor for the client currently being served.


Definition at line 378 of file components/service/sl_http_server/inc/sl_http_server_types.h

http_server_id#

osEventFlagsId_t sl_http_server_s::http_server_id

Event ID for the HTTP server, used for synchronization.


Definition at line 379 of file components/service/sl_http_server/inc/sl_http_server_types.h

request#

sl_http_server_request_t sl_http_server_s::request

Current HTTP request being processed.


Definition at line 380 of file components/service/sl_http_server/inc/sl_http_server_types.h

request_buffer#

char sl_http_server_s::request_buffer[SL_HTTP_SERVER_MAX_HEADER_BUFFER_LENGTH]

Buffer for storing the HTTP request.


Definition at line 381 of file components/service/sl_http_server/inc/sl_http_server_types.h

header#

char* sl_http_server_s::header

Pointer to a string containing headers.


Definition at line 382 of file components/service/sl_http_server/inc/sl_http_server_types.h

req_data#

uint8_t* sl_http_server_s::req_data

Pointer to the data of the HTTP request.


Definition at line 383 of file components/service/sl_http_server/inc/sl_http_server_types.h

data_length#

uint32_t sl_http_server_s::data_length

Length of the request data.


Definition at line 384 of file components/service/sl_http_server/inc/sl_http_server_types.h

rem_len#

uint32_t sl_http_server_s::rem_len

Remaining length of data to be processed in the request.


Definition at line 385 of file components/service/sl_http_server/inc/sl_http_server_types.h

response_sent#

bool sl_http_server_s::response_sent

Flag indicating whether the response has been sent for the current request.


Definition at line 386 of file components/service/sl_http_server/inc/sl_http_server_types.h

rem_resp_length#

uint32_t sl_http_server_s::rem_resp_length

Remaining length of data to be sent in the response.


Definition at line 387 of file components/service/sl_http_server/inc/sl_http_server_types.h