ofxHTTP
A collection of tools for HTTP.
|
The base implmentation of a server route. More...
#include <BaseRoute.h>
Public Member Functions | |
BaseRouteHandler_ (RouteType &route) | |
Create a BaseRoute. | |
virtual | ~BaseRouteHandler_ () |
Destroy a BaseRoute. | |
void | handleRequest (Poco::Net::HTTPServerRequest &request, Poco::Net::HTTPServerResponse &response) override |
virtual void | handleRequest (ServerEventArgs &evt) override=0 |
Handle the ServerEventArgs. More... | |
virtual void | stop () override |
Interrupt the handleRequest method if possible. | |
RouteType & | route () |
Get the dispatching route. | |
Public Member Functions inherited from ofx::HTTP::AbstractRouteHandler | |
virtual | ~AbstractRouteHandler () |
Destroy the AbstractRouteHandler instance. | |
Public Member Functions inherited from ofx::HTTP::AbstractHTTPRequestHandler | |
virtual | ~AbstractHTTPRequestHandler () |
Destroy the AbstractHTTPRequestHandler. | |
Public Member Functions inherited from ofx::HTTP::AbstractServerEventRequestHandler | |
virtual | ~AbstractServerEventRequestHandler () |
Destroy the AbstractServerEventRequestHandler. | |
Protected Attributes | |
RouteType & | _route |
The route. | |
The base implmentation of a server route.
|
overridepure virtual |
Handle the ServerEventArgs.
evt | The server request event. |
Implements ofx::HTTP::AbstractServerEventRequestHandler.
Implemented in ofx::HTTP::BaseConnection_< RouteType, FrameType >, ofx::HTTP::IPVideoConnection, ofx::HTTP::PostRouteHandler, ofx::HTTP::SSEConnection, and ofx::HTTP::WebSocketConnection.