pub async fn write_http_request<W, B>( w: &mut W, req: Request<B>, write_headers: bool, write_body: bool, ) -> Result<Request, BoxError>where W: AsyncWrite + Unpin + Send + Sync + 'static, B: Body<Data = Bytes, Error: Into<BoxError>> + Send + Sync + 'static,
Write an HTTP request to a writer in std http format.