MySQL 8.4.2
Source Code Documentation
impl::HttpServerComponentImpl Class Reference
Inheritance diagram for impl::HttpServerComponentImpl:
[legend]

Classes

struct  RouterData
 

Public Member Functions

 HttpServerComponentImpl ()=default
 
void init (std::shared_ptr< http::HttpServerContext > srv) override
 
void * add_route (const std::string &url_regex, std::unique_ptr< http::base::RequestHandler > cb) override
 
void remove_route (const std::string &url_regex) override
 
void remove_route (const void *handler) override
 
bool is_ssl_configured () override
 
- Public Member Functions inherited from HttpServerComponent
virtual ~HttpServerComponent ()=default
 

Private Member Functions

 HttpServerComponentImpl (HttpServerComponentImpl const &)=delete
 
void operator= (HttpServerComponent const &)=delete
 

Private Attributes

std::mutex rh_mu
 
std::vector< RouterDatarequest_handlers_
 
std::weak_ptr< http::HttpServerContextsrv_
 

Additional Inherited Members

- Public Types inherited from HttpServerComponent
using HttpServerCtxtPtr = std::shared_ptr< http::HttpServerContext >
 
- Static Public Member Functions inherited from HttpServerComponent
static HttpServerComponentget_instance ()
 
static void set_instance (std::unique_ptr< HttpServerComponent > component)
 

Constructor & Destructor Documentation

◆ HttpServerComponentImpl() [1/2]

impl::HttpServerComponentImpl::HttpServerComponentImpl ( )
default

◆ HttpServerComponentImpl() [2/2]

impl::HttpServerComponentImpl::HttpServerComponentImpl ( HttpServerComponentImpl const &  )
privatedelete

Member Function Documentation

◆ add_route()

void * impl::HttpServerComponentImpl::add_route ( const std::string &  url_regex,
std::unique_ptr< http::base::RequestHandler cb 
)
overridevirtual

Implements HttpServerComponent.

◆ init()

void impl::HttpServerComponentImpl::init ( std::shared_ptr< http::HttpServerContext srv)
overridevirtual

Implements HttpServerComponent.

◆ is_ssl_configured()

bool impl::HttpServerComponentImpl::is_ssl_configured ( )
overridevirtual

Implements HttpServerComponent.

◆ operator=()

void impl::HttpServerComponentImpl::operator= ( HttpServerComponent const &  )
privatedelete

◆ remove_route() [1/2]

void impl::HttpServerComponentImpl::remove_route ( const std::string &  url_regex)
overridevirtual

Implements HttpServerComponent.

◆ remove_route() [2/2]

void impl::HttpServerComponentImpl::remove_route ( const void *  handler)
overridevirtual

Implements HttpServerComponent.

Member Data Documentation

◆ request_handlers_

std::vector<RouterData> impl::HttpServerComponentImpl::request_handlers_
private

◆ rh_mu

std::mutex impl::HttpServerComponentImpl::rh_mu
private

◆ srv_

std::weak_ptr<http::HttpServerContext> impl::HttpServerComponentImpl::srv_
private

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