MCPcopy Create free account
hub / github.com/boostorg/beast / http_session

Method http_session

example/advanced/server/advanced_server.cpp:340–348  ·  view source on GitHub ↗

Take ownership of the socket

Source from the content-addressed store, hash-verified

338public:
339 // Take ownership of the socket
340 http_session(
341 tcp::socket&& socket,
342 std::shared_ptr<std::string const> const& doc_root)
343 : stream_(std::move(socket))
344 , doc_root_(doc_root)
345 {
346 static_assert(queue_limit > 0,
347 "queue limit must be positive");
348 }
349
350 // Start the session
351 void

Callers

nothing calls this directly

Calls 1

moveClass · 0.85

Tested by

no test coverage detected