MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / run_http_request

Function run_http_request

boost-http/http-client.cpp:211–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209};
210
211void run_http_request(const td::IPAddress &addr, HttpCallback::RequestType request_type, std::string url,
212 std::vector<std::pair<std::string, std::string>> headers, std::string payload, double timeout,
213 std::unique_ptr<HttpRequestCallback> callback) {
214 auto req = std::make_shared<HttpClientSession>(io_context(), addr, request_type, std::move(url), std::move(headers),
215 std::move(payload), timeout, std::move(callback));
216 req->run();
217}
218
219} // namespace http
220

Callers 3

receive_http_requestMethod · 0.85
send_requestMethod · 0.85
start_requestMethod · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected