MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / http_server

Method http_server

src/dpp/http_server.cpp:27–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace dpp {
26
27http_server::http_server(cluster* owner, const std::string_view address, uint16_t port, http_server_request_event handle_request, const std::string& private_key, const std::string& public_key)
28 : socket_listener<http_server_request>(owner, address, port, private_key.empty() ? li_plaintext : li_ssl, private_key, public_key), request_handler(handle_request), bound_port(port)
29{
30}
31
32void http_server::emplace(socket newfd) {
33 connections.emplace(newfd, std::make_unique<http_server_request>(creator, newfd, bound_port, plaintext, private_key_file, public_key_file, request_handler));

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected