| 11 | using namespace http; |
| 12 | |
| 13 | Client::Client() |
| 14 | : buffer(8192) |
| 15 | , receiving_body(false) |
| 16 | , waiting_write_response(false) |
| 17 | , sock([this](bool, bool) { advance_state(true); }, std::bind(&Client::on_disconnect, this)) |
| 18 | , keep_alive(true) {} |
| 19 | |
| 20 | void Client::disconnect() { |
| 21 | clear(); |
nothing calls this directly
no outgoing calls
no test coverage detected