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

Function serve

include/process/http.hpp:1042–1047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1040// always be read using `Request.reader`.
1041template <typename F>
1042Future<Nothing> serve(const network::Socket& s, F&& f)
1043{
1044 return internal::serve(
1045 s,
1046 std::function<Future<Response>(const Request&)>(std::forward<F>(f)));
1047}
1048
1049
1050// Forward declaration.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected