kvarn::prelude::fs::write

Function response

source
pub async fn response<T>(
    response: &Response<T>,
    body: &[u8],
    writer: impl AsyncWrite + Unpin,
) -> Result<(), Error>
Expand description

Writer should be buffered.

ยงErrors

Will pass any errors emitted from writer.