| 84 | } |
| 85 | |
| 86 | void on_connect(beast::error_code error, tcp::resolver::results_type::endpoint_type) { |
| 87 | if (error) { |
| 88 | return fail("connect", std::move(error)); |
| 89 | } |
| 90 | |
| 91 | http::async_write(stream_, req_, beast::bind_front_handler(&HttpClientSession::on_write, shared_from_this())); |
| 92 | } |
| 93 | |
| 94 | void on_write(beast::error_code error, std::size_t) { |
| 95 | if (error) { |
nothing calls this directly
no outgoing calls
no test coverage detected