MySQL  8.0.17
Source Code Documentation
http_server_plugin.cc File Reference
#include <atomic>
#include <chrono>
#include <future>
#include <mutex>
#include <stdexcept>
#include <thread>
#include <sys/types.h>
#include <event2/buffer.h>
#include <event2/bufferevent.h>
#include <event2/bufferevent_ssl.h>
#include <event2/event.h>
#include <event2/http.h>
#include <event2/listener.h>
#include <event2/util.h>
#include "common.h"
#include "mysql/harness/config_parser.h"
#include "mysql/harness/loader.h"
#include "mysql/harness/logging/logging.h"
#include "mysql/harness/plugin.h"
#include "mysql/harness/utility/string.h"
#include "http_auth.h"
#include "http_server_plugin.h"
#include "mysqlrouter/http_auth_realm_component.h"
#include "mysqlrouter/http_server_component.h"
#include "mysqlrouter/plugin_config.h"
#include "posix_re.h"
#include "socket_operations.h"
#include "static_files.h"
#include "tls_server_context.h"

Classes

class  HttpRequestMainThread
 
class  HttpRequestWorkerThread
 
class  PluginConfig
 
class  HttpServerFactory
 

Functions

void stop_eventloop (evutil_socket_t, short, void *cb_arg)
 
static void init (PluginFuncEnv *env)
 
static void start (PluginFuncEnv *env)
 

Variables

static constexpr const char kSectionName [] {"http_server"}
 HTTP server plugin. More...
 
std::promise< void > stopper
 
std::future< void > stopped = stopper.get_future()
 
static std::map< std::string, std::shared_ptr< HttpServer > > http_servers
 
Plugin HTTP_SERVER_EXPORT harness_plugin_http_server
 

Function Documentation

◆ init()

static void init ( PluginFuncEnv env)
static

◆ start()

static void start ( PluginFuncEnv env)
static

◆ stop_eventloop()

void stop_eventloop ( evutil_socket_t  ,
short  ,
void *  cb_arg 
)

Variable Documentation

◆ harness_plugin_http_server

Plugin HTTP_SERVER_EXPORT harness_plugin_http_server
Initial value:
= {
PLUGIN_ABI_VERSION,
ARCHITECTURE_DESCRIPTOR,
"HTTP_SERVER",
VERSION_NUMBER(0, 0, 1),
0,
nullptr,
0,
nullptr,
init,
nullptr,
nullptr,
}
static void start(PluginFuncEnv *env)
Definition: http_server_plugin.cc:572
static void init(PluginFuncEnv *env)
Definition: http_server_plugin.cc:496

◆ http_servers

std::map<std::string, std::shared_ptr<HttpServer> > http_servers
static

◆ kSectionName

constexpr const char kSectionName[] {"http_server"}
static

HTTP server plugin.

◆ stopped

std::future<void> stopped = stopper.get_future()

◆ stopper

std::promise<void> stopper