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

Writer should be buffered.

Errors

Will pass any errors emitted from writer.