Function rama::http::io::write_http_response

pub async fn write_http_response<W, B>(
    w: &mut W,
    res: Response<B>,
    write_headers: bool,
    write_body: bool,
) -> Result<Response<Body>, Box<dyn Error + Sync + Send>>
where W: AsyncWrite + Unpin + Send + Sync + 'static, B: Body<Data = Bytes> + Send + Sync + 'static, <B as Body>::Error: Into<Box<dyn Error + Sync + Send>>,
Expand description

Write an HTTP response to a writer in std http format.