26#ifndef ROUTER_SRC_HTTP_INCLUDE_MYSQLROUTER_COMPONENT_HTTP_SERVER_COMPONENT_H_
27#define ROUTER_SRC_HTTP_INCLUDE_MYSQLROUTER_COMPONENT_HTTP_SERVER_COMPONENT_H_
48 static void set_instance(std::unique_ptr<HttpServerComponent> component);
52 const std::string &url_host,
const std::string &url_regex,
53 std::unique_ptr<http::base::RequestHandler>
cb) = 0;
55 const std::string &url_host, const ::http::base::UriPathMatcher &url_path,
56 std::unique_ptr<http::base::RequestHandler>
cb) = 0;
Definition: http_server_component.h:39
virtual void init(HttpServerCtxtPtr srv)=0
virtual void * add_regex_route(const std::string &url_host, const std::string &url_regex, std::unique_ptr< http::base::RequestHandler > cb)=0
virtual ~HttpServerComponent()=default
virtual void * add_direct_match_route(const std::string &url_host, const ::http::base::UriPathMatcher &url_path, std::unique_ptr< http::base::RequestHandler > cb)=0
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:41
The handler class is the interface for dynamically loadable storage engines.
Definition: handler.h:4666
#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