MCPcopy Create free account
hub / github.com/bcndev/bytecoin / write

Method write

src/http/Server.cpp:31–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 size_t handle;
30
31 void write(ResponseBody &&response) {
32 // std::cout << "Client write " << handle << std::endl;
33 try {
34 cb(handle, response.r.status, response.body);
35 } catch (...) {
36 // We catch JS errors as ... and ignore them
37 std::cout << "Client::write cb leads to throw/catch" << std::endl;
38 }
39 global_server->on_client_disconnected(this);
40 }
41};
42
43} // namespace http

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected