HttpResource.h
Go to the documentation of this file.
86 int handleHeaders(HttpServerConnection& connection, HttpRequest& request, HttpResponse& response);
87 int handleUpgrade(HttpServerConnection& connection, HttpRequest& request, char* data, size_t length);
88 int handleBody(HttpServerConnection& connection, HttpRequest& request, char*& data, size_t& length);
89 int handleRequest(HttpServerConnection& connection, HttpRequest& request, HttpResponse& response);
Base plugin class. Implementations should be based on either HttpPreFilter or HttpPostFilter
Definition: HttpResourcePlugin.h:24
Definition: HttpResource.h:49
HttpResourcePlugin * operator->() const
Definition: HttpResource.h:57
PluginRef(HttpResourcePlugin *plugin)
Definition: HttpResource.h:53
Instances of this class are registered with an HttpServer for a specific URL.
Definition: HttpResource.h:34
void addPlugin(HttpResourcePlugin *plugin)
HttpResourceDelegate onHeadersComplete
headers are ready
Definition: HttpResource.h:68
HttpResourceDelegate onRequestComplete
request is complete OR upgraded
Definition: HttpResource.h:69
void addPlugin(HttpResourcePlugin *plugin, Tail... plugins)
Definition: HttpResource.h:74
virtual void shutdown(HttpServerConnection &connection)
Takes care to cleanup the connection.
Definition: HttpResource.h:43
HttpServerConnectionUpgradeDelegate onUpgrade
request is upgraded and raw data is passed to it
Definition: HttpResource.h:70
HttpResourceDelegate onUrlComplete
URL is ready. Path and status code are available.
Definition: HttpResource.h:66
HttpServerConnectionBodyDelegate onBody
resource wants to process the raw body data
Definition: HttpResource.h:67
Represents either an incoming or outgoing response to a HTTP request.
Definition: HttpResponse.h:26
Definition: HttpServerConnection.h:34
Base class template for linked items with type casting.
Definition: LinkedObject.h:62