Struct rocket_http::hyper::header::Protocol [−][src]
pub struct Protocol {
pub name: ProtocolName,
pub version: Option<String>,
}
Expand description
Protocols that appear in the Upgrade
header field
Fields
name: ProtocolName
The protocol identifier
version: Option<String>
The optional version of the protocol, often in the format “DIGIT.DIGIT” (e.g.. “1.2”)
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Protocol
impl UnwindSafe for Protocol
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.