pub enum Incoming {
Tcp(TcpStream),
Udp(Connection),
}
Expand description
An incoming connection, before it’s wrapped with HTTP.
Variants§
Tcp(TcpStream)
Used for HTTP/1 & HTTP/2
Udp(Connection)
Available on crate feature
http3
only.Used for HTTP/3