rama_http::io

Function write_http_response

Source
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,
Expand description

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