Enum kvarn::application::ResponseBodyPipe

source ·
pub enum ResponseBodyPipe {
    Http1(Arc<Mutex<Encryption>>),
    Http2(SendStream<Bytes>, H2SendResponse),
    Http3(RequestStream<SendStream<Bytes>, Bytes>),
}
Expand description

A pipe to send a body after the Response is sent by ResponsePipe::send_response.

The AsyncWriteExt::shutdown does nothing, and will immediately return with Ok(())

Variants§

§

Http1(Arc<Mutex<Encryption>>)

HTTP/1 pipe

§

Http2(SendStream<Bytes>, H2SendResponse)

Available on crate feature http2 only.

HTTP/2 pipe

§

Http3(RequestStream<SendStream<Bytes>, Bytes>)

Available on