MySQL 8.4.2
Source Code Documentation
HttpServerComponent Class Referenceabstract

#include <http_server_component.h>

Inheritance diagram for HttpServerComponent:
[legend]

Public Types

using HttpServerCtxtPtr = std::shared_ptr< http::HttpServerContext >
 

Public Member Functions

virtual ~HttpServerComponent ()=default
 
virtual void init (HttpServerCtxtPtr srv)=0
 
virtual void * add_route (const std::string &url_regex, std::unique_ptr< http::base::RequestHandler > cb)=0
 
virtual void remove_route (const std::string &url_regex)=0
 
virtual void remove_route (const void *handler)=0
 
virtual bool is_ssl_configured ()=0
 

Static Public Member Functions

static HttpServerComponentget_instance ()
 
static void set_instance (std::unique_ptr< HttpServerComponent > component)
 

Member Typedef Documentation

◆ HttpServerCtxtPtr

Constructor & Destructor Documentation

◆ ~HttpServerComponent()

virtual HttpServerComponent::~HttpServerComponent ( )
virtualdefault

Member Function Documentation

◆ add_route()

virtual void * HttpServerComponent::add_route ( const std::string &  url_regex,
std::unique_ptr< http::base::RequestHandler cb 
)
pure virtual

◆ get_instance()

HttpServerComponent & HttpServerComponent::get_instance ( )
static

◆ init()

virtual void HttpServerComponent::init ( HttpServerCtxtPtr  srv)
pure virtual

◆ is_ssl_configured()

virtual bool HttpServerComponent::is_ssl_configured ( )
pure virtual

◆ remove_route() [1/2]

virtual void HttpServerComponent::remove_route ( const std::string &  url_regex)
pure virtual

◆ remove_route() [2/2]

virtual void HttpServerComponent::remove_route ( const void *  handler)
pure virtual

◆ set_instance()

void HttpServerComponent::set_instance ( std::unique_ptr< HttpServerComponent component)
static

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