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