MCPcopy Create free account
hub / github.com/3rdparty/libprocess / Server

Method Server

src/http.cpp:2265–2272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2263
2264
2265Server::Server(
2266 network::Socket&& socket,
2267 std::function<Future<Response>(const network::Socket&, const Request&)>&& f)
2268 : socket(socket),
2269 process(new ServerProcess(std::move(socket), std::move(f)))
2270{
2271 spawn(*process);
2272}
2273
2274
2275Server::~Server()

Callers

nothing calls this directly

Calls 1

spawnFunction · 0.70

Tested by

no test coverage detected