Enum hyper::header::ProtocolName [] [src]

pub enum ProtocolName {
    Http,
    Tls,
    WebSocket,
    H2c,
    Unregistered(String),
}

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

Any other protocol name not known to hyper

Trait Implementations

impl Clone for ProtocolName
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ProtocolName
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for ProtocolName
[src]

impl PartialEq for ProtocolName
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl FromStr for ProtocolName
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl Display for ProtocolName
[src]

[src]

Formats the value using the given formatter. Read more