26#ifndef ROUTER_SRC_HTTP_SRC_HTTP_SERVER_SERVER_H_
27#define ROUTER_SRC_HTTP_SRC_HTTP_SERVER_SERVER_H_
73 void set_allowed_methods(
const Methods &methods);
83 const std::error_code &ec)
override;
89 const std::error_code &ec)
override;
92 enum class State { kInitializing, kRunning, kStopping, kStopped };
94 size_t disconnect_all();
96 void start_accepting();
Definition: io_thread.h:39
TLS Context for the server side.
Definition: tls_server_context.h:51
Definition: wait_variable.h:34
The handler class is the interface for dynamically loadable storage engines.
Definition: handler.h:4583
Definition: request_handler_interface.h:36
Definition: connection.h:41
base::method::Bitset Methods
Definition: server.h:65
net::impl::socket::native_handle_type native_handle_type
Definition: server.h:62
IoIterator current_thread_
Definition: server.h:101
base::method::Bitset allowed_methods_
Definition: server.h:104
Bind * bind_ssl_
Definition: server.h:103
void on_connection_close(ConnectionRaw *connection) override
TlsServerContext * tls_context_
Definition: server.h:99
std::list< IoThread > IoThreads
Definition: server.h:66
State
Definition: server.h:92
std::mutex mutex_connection_
Definition: server.h:107
std::vector< std::shared_ptr< ServerConnectionTls > > connections_ssl_
Definition: server.h:109
void on_connection_io_error(ConnectionRaw *connection, const std::error_code &ec) override
Bind * bind_raw_
Definition: server.h:102
std::list< IoThread > * threads_
Definition: server.h:100
std::vector< std::shared_ptr< ServerConnectionRaw > > connections_
Definition: server.h:108
IoThreads::iterator IoIterator
Definition: server.h:67
Definition: socket.h:1090
Definition: io_context.h:61
basic_stream_socket< tcp > socket
Definition: internet.h:1159
Definition: tls_stream.h:47
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
std::bitset< Pos::_LAST+1 > Bitset
Definition: method.h:57
ConnectionRaw::ConnectionStatusCallbacks ConnectionStatusCallbacksRaw
Definition: server.h:56
ConnectionTls::ConnectionStatusCallbacks ConnectionStatusCallbacksTls
Definition: server.h:57
Definition: connection.h:56
stdx::expected< native_handle_type, error_type > socket(int family, int sock_type, int protocol)
Definition: socket.h:63
int native_handle_type
Definition: socket_constants.h:51
Definition: server_struct.h:39