Send a request to this server and wait for the response.
(&self, req: http::Request<String>)
| 1645 | |
| 1646 | /// Send a request to this server and wait for the response. |
| 1647 | async fn send_request(&self, req: http::Request<String>) -> Result<http::Response<String>> { |
| 1648 | let (mut send, conn_task) = self.start_requests().await?; |
| 1649 | |
| 1650 | let response = Self::send_request_with(&mut send, req).await?; |
| 1651 | drop(send); |
| 1652 | |
| 1653 | conn_task.await??; |
| 1654 | |
| 1655 | Ok(response) |
| 1656 | } |
| 1657 | |
| 1658 | async fn send_request_with( |
| 1659 | send: &mut hyper::client::conn::http1::SendRequest<String>, |
no test coverage detected