| 6180 | inline bool Server::is_valid() const { return true; } |
| 6181 | |
| 6182 | inline bool Server::process_and_close_socket(socket_t sock) { |
| 6183 | auto ret = detail::process_server_socket( |
| 6184 | svr_sock_, sock, keep_alive_max_count_, keep_alive_timeout_sec_, |
| 6185 | read_timeout_sec_, read_timeout_usec_, write_timeout_sec_, |
| 6186 | write_timeout_usec_, |
| 6187 | [this](Stream &strm, bool close_connection, bool &connection_closed) { |
| 6188 | return process_request(strm, close_connection, connection_closed, |
| 6189 | nullptr); |
| 6190 | }); |
| 6191 | |
| 6192 | detail::shutdown_socket(sock); |
| 6193 | detail::close_socket(sock); |
| 6194 | return ret; |
| 6195 | } |
| 6196 | |
| 6197 | // HTTP client implementation |
| 6198 | inline ClientImpl::ClientImpl(const std::string &host) |
nothing calls this directly
no test coverage detected