HttpResource.h
Go to the documentation of this file.
84 int handleHeaders(HttpServerConnection& connection, HttpRequest& request, HttpResponse& response);
85 int handleUpgrade(HttpServerConnection& connection, HttpRequest& request, char* data, size_t length);
86 int handleBody(HttpServerConnection& connection, HttpRequest& request, char*& data, size_t& length);
87 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:47
HttpResourcePlugin * operator->() const
Definition: HttpResource.h:55
PluginRef(HttpResourcePlugin *plugin)
Definition: HttpResource.h:51
Instances of this class are registered with an HttpServer for a specific URL.
Definition: HttpResource.h:34
virtual ~HttpResource()=default
void addPlugin(HttpResourcePlugin *plugin)
HttpResourceDelegate onHeadersComplete
headers are ready
Definition: HttpResource.h:66
HttpResourceDelegate onRequestComplete
request is complete OR upgraded
Definition: HttpResource.h:67
void addPlugin(HttpResourcePlugin *plugin, Tail... plugins)
Definition: HttpResource.h:72
HttpServerConnectionUpgradeDelegate onUpgrade
request is upgraded and raw data is passed to it
Definition: HttpResource.h:68
virtual void shutdown(HttpServerConnection &)
Takes care to cleanup the connection.
Definition: HttpResource.h:41
HttpResourceDelegate onUrlComplete
URL is ready. Path and status code are available.
Definition: HttpResource.h:64
HttpServerConnectionBodyDelegate onBody
resource wants to process the raw body data
Definition: HttpResource.h:65
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:60
1.9.1