pion-net
4.0.9
|
#include <AllowNothingService.hpp>
Inherits pion::net::WebService.
Public Member Functions | |
virtual void | operator() (pion::net::HTTPRequestPtr &request, pion::net::TCPConnectionPtr &tcp_conn) |
![]() | |
WebService (void) | |
default constructor | |
virtual | ~WebService () |
virtual destructor | |
virtual void | setOption (const std::string &name, const std::string &value) |
virtual void | start (void) |
called when the web service's server is starting | |
virtual void | stop (void) |
called when the web service's server is stopping | |
void | setResource (const std::string &str) |
sets the URI stem or resource that is bound to the web service | |
const std::string & | getResource (void) const |
returns the URI stem or resource that is bound to the web service | |
std::string | getRelativeResource (const std::string &resource_requested) const |
returns the path to the resource requested, relative to the web service's location |
This class has a corresponding create function (pion_create_AllowNothingService) and destroy function (pion_destroy_AllowNothingService), as required for use by PionPlugin.
Definition at line 23 of file AllowNothingService.hpp.
|
virtual |
attempts to handle a new HTTP request
request | the new HTTP request to handle |
tcp_conn | the TCP connection that has the new request |
Implements pion::net::WebService.
Definition at line 21 of file AllowNothingService.cpp.