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

Method on_resolve

boost-http/http-client.cpp:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 }
76
77 void on_resolve(beast::error_code error, tcp::resolver::results_type results) {
78 if (error) {
79 return fail("resolve", std::move(error));
80 }
81
82 stream_.expires_after(std::chrono::seconds((int)timeout_));
83 stream_.async_connect(results, beast::bind_front_handler(&HttpClientSession::on_connect, shared_from_this()));
84 }
85
86 void on_connect(beast::error_code error, tcp::resolver::results_type::endpoint_type) {
87 if (error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected