| 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected