26#ifndef ROUTER_SRC_HTTP_INCLUDE_MYSQLROUTER_COMPONENT_HTTP_SERVER_COMPONENT_H_
27#define ROUTER_SRC_HTTP_INCLUDE_MYSQLROUTER_COMPONENT_HTTP_SERVER_COMPONENT_H_
47 static void set_instance(std::unique_ptr<HttpServerComponent> component);
50 virtual void *
add_route(
const std::string &url_host,
51 const std::string &url_regex,
52 std::unique_ptr<http::base::RequestHandler>
cb) = 0;
54 const std::string &url_regex) = 0;
Definition: http_server_component.h:38
virtual void init(HttpServerCtxtPtr srv)=0
virtual void remove_route(const std::string &url_host, const std::string &url_regex)=0
virtual void * add_route(const std::string &url_host, const std::string &url_regex, std::unique_ptr< http::base::RequestHandler > cb)=0
virtual ~HttpServerComponent()=default
virtual void remove_route(const void *handler)=0
virtual bool is_ssl_configured()=0
std::shared_ptr< http::HttpServerContext > HttpServerCtxtPtr
Definition: http_server_component.h:40
The handler class is the interface for dynamically loadable storage engines.
Definition: handler.h:4618
#define HTTP_SERVER_LIB_EXPORT
Definition: http_server_lib_export.h:15
static bool cb(unsigned long long new_value)
Definition: option_usage.cc:45
Definition: srv0dynamic_procedures.h:48