pion  5.0.6
Public Member Functions | List of all members
pion::plugins::AllowNothingService Class Reference

#include <AllowNothingService.hpp>

Inherits pion::http::plugin_service.

Public Member Functions

virtual void operator() (const pion::http::request_ptr &http_request_ptr, const pion::tcp::connection_ptr &tcp_conn)
 
- Public Member Functions inherited from pion::http::plugin_service
 plugin_service (void)
 default constructor
 
virtual ~plugin_service ()
 virtual destructor
 
virtual void set_option (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 set_resource (const std::string &str)
 sets the URI stem or resource that is bound to the web service
 
const std::string & get_resource (void) const
 returns the URI stem or resource that is bound to the web service
 
std::string get_relative_resource (const std::string &resource_requested) const
 returns the path to the resource requested, relative to the web service's location
 

Detailed Description

This class has a corresponding create function (pion_create_AllowNothingService) and destroy function (pion_destroy_AllowNothingService), as required for use by plugin.

Definition at line 23 of file AllowNothingService.hpp.

Member Function Documentation

◆ operator()()

void pion::plugins::AllowNothingService::operator() ( const pion::http::request_ptr &  http_request_ptr,
const pion::tcp::connection_ptr &  tcp_conn 
)
virtual

attempts to handle a new HTTP request

Parameters
http_request_ptrthe new HTTP request to handle
tcp_connthe TCP connection that has the new request

Implements pion::http::plugin_service.

Definition at line 20 of file AllowNothingService.cpp.

References pion::http::response_writer::create(), and pion::tcp::connection::finish().


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