Webserver example for mbed OS 5 - HTTP 1.1 and multi-threaded

Dependencies:   mbed-http

Embed: (wiki syntax)

« Back to documentation index

HttpServer Class Reference

HttpServer Class Reference

HttpServer implements the logic for setting up an HTTP server. More...

#include <http_server.h>

Public Member Functions

 HttpServer (NetworkInterface *network)
 HttpRequest Constructor.
nsapi_error_t start (uint16_t port, Callback< void(ParsedHttpRequest *request, TCPSocket *socket)> a_handler)
 Start running the server (it will run on it's own thread)

Detailed Description

HttpServer implements the logic for setting up an HTTP server.

Definition at line 35 of file http_server.h.


Constructor & Destructor Documentation

HttpServer ( NetworkInterface *  network )

HttpRequest Constructor.

Parameters:
[in]networkThe network interface

Definition at line 42 of file http_server.h.


Member Function Documentation

nsapi_error_t start ( uint16_t  port,
Callback< void(ParsedHttpRequest *request, TCPSocket *socket)>  a_handler 
)

Start running the server (it will run on it's own thread)

Definition at line 57 of file http_server.h.