kvarn::application

Enum ResponsePipe

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

A pipe to send a Response through.

You may also push requests if the pipe is ResponsePipe::Http2 by calling ResponseBodyPipe::push_request. after you call ResponsePipe::send_response.

Variants§

§

Http1(Arc<Mutex<Encryption>>)

An HTTP/1 stream to send a response.

§

Http2(SendResponse<Bytes>)

Available on crate feature http2 only.

An HTTP/2 response pipe.

§

Http3(RequestStream<SendStream<<