Struct reqwest::header::Protocol [] [src]

pub struct Protocol {
    pub name: ProtocolName,
    pub version: Option<String>,
}

Protocols that appear in the Upgrade header field

Fields

The protocol identifier

The optional version of the protocol, often in the format "DIGIT.DIGIT" (e.g.. "1.2")

Methods

impl Protocol
[src]

Creates a new Protocol with the given name and version

Trait Implementations

impl FromStr for Protocol
[src]

impl Eq for Protocol
[src]

impl Display for Protocol
[src]

Formats the value using the given formatter. Read more

impl Debug for Protocol
[src]

Formats the value using the given formatter.

impl PartialEq<Protocol> for Protocol
[src]

impl Clone for Protocol
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more