HTTP server handle used to manage all HTTP server functions.
Public Attributes#
Configuration settings for the HTTP server.
Socket descriptor for the server.
Socket descriptor for the client currently being served.
Event ID for the HTTP server, used for synchronization.
Current HTTP request being processed.
Buffer for storing the HTTP request.
Pointer to string containing headers.
Pointer to the data of the HTTP request.
Length of the request data.
Remaining length of data to be processed in the request.
Flag indicating whether the response has been sent for the current request.
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.
199
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.
200
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.
201
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.
202
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.
203
of file components/service/sl_http_server/inc/sl_http_server_types.h
request_buffer#
char sl_http_server_s::request_buffer[MAX_HEADER_BUFFER_LENGTH]
Buffer for storing the HTTP request.
204
of file components/service/sl_http_server/inc/sl_http_server_types.h
header#
char* sl_http_server_s::header
Pointer to string containing headers.
205
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.
206
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.
207
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.
208
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.
209
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.
210
of file components/service/sl_http_server/inc/sl_http_server_types.h