26#ifndef ROUTER_SRC_HTTP_INCLUDE_MYSQLROUTER_COMPONENT_HTTP_SERVER_COMPONENT_H_
27#define ROUTER_SRC_HTTP_INCLUDE_MYSQLROUTER_COMPONENT_HTTP_SERVER_COMPONENT_H_
50 static void set_instance(std::unique_ptr<HttpServerComponent> component);
54 const std::string &url_host,
const std::string &url_regex,
55 std::unique_ptr<http::base::RequestHandler>
cb) = 0;
57 const std::string &url_host, const ::http::base::UriPathMatcher &url_path,
58 std::unique_ptr<http::base::RequestHandler>
cb) = 0;
Definition: http_server_component.h:41
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 uint64_t get_effective_max_http_connections()=0
virtual void set_max_response_body_size(std::optional< uint64_t > value)=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
virtual uint64_t get_effective_max_response_body_size()=0
virtual void set_max_request_body_size(std::optional< uint64_t > value)=0
virtual void clear_overrides()=0
virtual uint64_t get_effective_max_request_body_size()=0
virtual void set_max_http_connections(std::optional< uint64_t > value)=0
std::shared_ptr< http::HttpServerContext > HttpServerCtxtPtr
Definition: http_server_component.h:43
The handler class is the interface for dynamically loadable storage engines.
Definition: handler.h:4753
#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
ValueType value(const std::optional< ValueType > &v)
Definition: gtid.h:83
Definition: srv0dynamic_procedures.h:48