MySQL 8.0.39
Source Code Documentation
HttpsServer Class Reference
Inheritance diagram for HttpsServer:
[legend]

Public Member Functions

 HttpsServer (TlsServerContext &&tls_ctx, const std::string &address, uint16_t port)
 
void start (size_t max_threads) override
 
- Public Member Functions inherited from HttpServer
 HttpServer (const char *address, uint16_t port)
 
 HttpServer (const HttpServer &)=delete
 
HttpServeroperator= (const HttpServer &)=delete
 
 HttpServer (HttpServer &&)=delete
 
HttpServeroperator= (HttpServer &&)=delete
 
void join_all ()
 
virtual ~HttpServer ()
 
void stop ()
 
void add_route (const std::string &url_regex, std::unique_ptr< BaseRequestHandler > cb)
 
void remove_route (const std::string &url_regex)
 
HttpRequestRouterrequest_router ()
 

Private Attributes

TlsServerContext ssl_ctx_
 

Additional Inherited Members

- Protected Attributes inherited from HttpServer
std::vector< HttpRequestThreadthread_contexts_
 
std::string address_
 
uint16_t port_
 
HttpRequestRouter request_router_
 
net::io_context io_ctx_
 
net::ip::tcp::acceptor listen_sock_ {io_ctx_}
 
std::vector< std::thread > sys_threads_
 

Constructor & Destructor Documentation

◆ HttpsServer()

HttpsServer::HttpsServer ( TlsServerContext &&  tls_ctx,
const std::string &  address,
uint16_t  port 
)
inline

Member Function Documentation

◆ start()

void HttpsServer::start ( size_t  max_threads)
overridevirtual

Reimplemented from HttpServer.

Member Data Documentation

◆ ssl_ctx_

TlsServerContext HttpsServer::ssl_ctx_
private

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