ofxHTTP
A collection of tools for HTTP.
ofx::HTTP::BaseRouteHandler_< RouteType > Class Template Referenceabstract

The base implmentation of a server route. More...

#include <BaseRoute.h>

Inheritance diagram for ofx::HTTP::BaseRouteHandler_< RouteType >:
ofx::HTTP::AbstractRouteHandler ofx::HTTP::AbstractHTTPRequestHandler ofx::HTTP::AbstractServerEventRequestHandler ofx::HTTP::BaseConnection_< RouteType, FrameType >

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.
 

Detailed Description

template<typename RouteType>
class ofx::HTTP::BaseRouteHandler_< RouteType >

The base implmentation of a server route.

Member Function Documentation

◆ handleRequest()

template<typename RouteType>
virtual void ofx::HTTP::BaseRouteHandler_< RouteType >::handleRequest ( ServerEventArgs evt)
overridepure virtual

The documentation for this class was generated from the following file: