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

Method global_request

src/http/Server.cpp:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void Server::global_request(std::unique_ptr<Client> &&client, RequestBody &&request) {
75 // std::cout << "global_request 1" << std::endl;
76 Client *who = client.get();
77 // std::cout << "global_request 2" << std::endl;
78 clients[who] = std::move(client);
79 // auto who = next_client.get();
80 // if (!clients.emplace(handle, std::move(next_client)).second)
81 // throw std::runtime_error("cn_http_server_call with repeated handle");
82 // std::cout << "global_request 3" << std::endl;
83 on_client_handle_request(who, std::move(request));
84}
85
86void Server::global_disconnect(Client *client) { on_client_disconnected(client); }
87

Callers 1

worker_http_requestFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected