MCPcopy Create free account
hub / github.com/ad-freiburg/qlever / serverLogic

Method serverLogic

test/WebSocketSessionTest.cpp:96–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94
95 template <typename T>
96 net::awaitable<void> serverLogic(T&& completionToken) {
97 boost::beast::tcp_stream stream{std::move(server_)};
98 boost::beast::flat_buffer buffer;
99 http::request<http::string_body> request;
100 co_await http::async_read(stream, buffer, request, completionToken);
101 co_await WebSocketSession::handleSession(queryHub(), registry_, request,
102 std::move(stream.socket()));
103 }
104
105 auto serverLogic() { return serverLogic(net::use_awaitable); }
106};

Callers 1

ASYNC_TESTFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected