Async Http server. More...
#include <HttpServer.h>
Classes | |
| struct | Memory |
Public Member Functions | |
| Result | start (Memory &memory) |
| Starts the http server. | |
| size_t | getNumClients () const |
| bool | canAcceptMoreClients () const |
| bool | allocateClient (size_t &idx) |
| bool | deallocateClient (HttpServerClient &client) |
Public Attributes | |
| Function< void(HttpRequest &, HttpResponse &)> | onRequest |
| Called after enough data from a newly connected client has arrived, causing all headers to be parsed. | |
| Span< HttpServerClient > | clients |
| uint32_t | maxHeaderSize = 8 * 1024 |
Async Http server.
Usage:
Starts the http server.
| memory | Memory buffers to be used by the http server |
| Function<void(HttpRequest&, HttpResponse&)> SC::HttpServer::onRequest |
Called after enough data from a newly connected client has arrived, causing all headers to be parsed.