cueOS  2.4
cueOS - Universal Show Control OS for ARM
HTTP Server
Collaboration diagram for HTTP Server:

Modules

 Definitions
 
 HTTP Request
 
 HTTP response
 

Data Structures

struct  http_server_s
 HTTP server structure object. More...
 

Functions

http_server_shttp_server_init (uint16_t port, router_fn router)
 Initialises a new HTTP server instance. More...
 

Detailed Description

Handles the creation of an HTTP server instance. This http server module is able to serve both static (eg. static files) and dynamic (eg. API responses) response data.

Function Documentation

◆ http_server_init()

http_server_s * http_server_init ( uint16_t  port,
router_fn  router 
)

Initialises a new HTTP server instance.

Parameters
portthe server's port number
routerthe router functions which will be used to generate response data following HTTP request

Definition at line 256 of file http_server.c.