HttpServer.h
Go to the documentation of this file.
uint16_t keepAliveSeconds
default seconds to keep the connection alive before closing it
Definition: HttpServer.h:29
void setBodyParser(const String &contentType, HttpBodyParserDelegate parser)
Allows content-type specific parsing of the body based on content-type.
Definition: HttpServer.h:64
void addPath(String path, const HttpPathDelegate &callback)
Definition: HttpServer.h:80
void addPath(const String &path, HttpResource *resource)
Definition: HttpServer.h:92
void configure(const HttpServerSettings &settings)
Allows changing the server configuration.
Definition: TcpConnection.h:39
void set(const String &path, const HttpResourceDelegate &onRequestComplete)
Set a callback to handle the given path.
Definition: HttpResourceTree.h:66
TcpConnection * createClient(tcp_pcb *clientTcp) override
Definition: HttpResource.h:30
Definition: HttpServer.h:27
Definition: TcpServer.h:28
Definition: HttpServer.h:36
void setDefaultHandler(const HttpPathDelegate &callback)
Definition: HttpServer.h:98
Class to map URL paths to classes which handle them.
Definition: HttpResourceTree.h:24
HttpResourceTree paths
Maps paths to resources which deal with incoming requests.
Definition: HttpServer.h:111
void setDefaultResource(HttpResource *resource)
Definition: HttpServer.h:104
void setBodyParser(MimeType mimeType, HttpBodyParserDelegate parser)
Allows content-type specific parsing of the body based on content-type.
Definition: HttpServer.h:74
void setDefault(HttpResource *resource)
Set the default resource handler.
Definition: HttpResourceTree.h:30
void addPath(const String &path, const HttpResourceDelegate &onRequestComplete)
Definition: HttpServer.h:86