Function kvarn_async::write::response

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

Writer should be buffered.

Errors

Will pass any errors emitted from writer.