26#ifndef MYSQLROUTER_SERVER_CONTEXT_INCLUDED
27#define MYSQLROUTER_SERVER_CONTEXT_INCLUDED
55 const std::string &
host,
const uint16_t
port);
61 void add_route(
const std::string &url_regex,
62 std::unique_ptr<http::base::RequestHandler> cb);
63 void remove_route(
const std::string &url_regex);
64 void remove_route(
const void *handler_id);
66 bool is_ssl_configured();
76 server::Bind
bind{context_, host_, port_};
Definition: http_request_router.h:42
TLS Context for the server side.
Definition: tls_server_context.h:51
Definition: http_server_context.h:45
std::list< IoThread > IoThreads
Definition: http_server_context.h:47
TlsServerContext tls_context_
Definition: http_server_context.h:72
net::io_context * context_
Definition: http_server_context.h:71
HttpRequestRouter request_handler_
Definition: http_server_context.h:80
server::Server http
Definition: http_server_context.h:77
uint16_t port_
Definition: http_server_context.h:74
std::string host_
Definition: http_server_context.h:73
Definition: io_context.h:61
static void start(mysql_harness::PluginFuncEnv *env)
Definition: http_auth_backend_plugin.cc:180
#define HTTP_SERVER_LIB_EXPORT
Definition: http_server_lib_export.h:15
const char * host
Definition: mysqladmin.cc:65
Definition: connection.h:56
stdx::expected< void, error_type > bind(native_handle_type native_handle, const struct sockaddr *addr, size_t addr_len)
wrap bind() in a portable way.
Definition: socket.h:339
required uint64 port
Definition: replication_asynchronous_connection_failover.proto:33