Enum hyper::header::ProtocolName [−][src]
pub enum ProtocolName {
Http,
Tls,
WebSocket,
H2c,
Unregistered(String),
}
Expand description
A protocol name used to identify a spefic protocol. Names are case-sensitive
except for the WebSocket
value.
Variants
HTTP
value, Hypertext Transfer Protocol
TLS
value, Transport Layer Security RFC2817
WebSocket
value, matched case insensitively,Web Socket Protocol
RFC6455
h2c
value, HTTP/2 over cleartext TCP
Unregistered(String)
Any other protocol name not known to hyper
Tuple Fields of Unregistered
0: String
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ProtocolName
impl Send for ProtocolName
impl Sync for ProtocolName
impl Unpin for ProtocolName
impl UnwindSafe for ProtocolName
Blanket Implementations
Mutably borrows from an owned value. Read more