kvarn::application

Enum HttpConnection

source
pub enum HttpConnection {
    Http1(Arc<Mutex<Encryption>>),
    Http2(Box<Connection<Encryption, Bytes>>),
    Http3(Connection<Connection, Bytes>),
}
Expand description

A single HTTP connection.

See HttpConnection::new on how to make one and HttpConnection::accept on getting a FatRequest.

Variants§

§

Http1(Arc<Mutex<Encryption>>)

An HTTP/1 connection

§

Http2(Box<Connection<Encryption, Bytes>>)

Available on crate feature http2 only.

An HTTP/2 connection

This is boxed be