Enum edge::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

HTTP value, Hypertext Transfer Protocol

Tls

TLS value, Transport Layer Security RFC2817

WebSocket

WebSocket value, matched case insensitively,Web Socket Protocol RFC6455

H2c

h2c value, HTTP/2 over cleartext TCP

Unregistered

Any other protocol name not known to hyper

Trait Implementations

impl FromStr for ProtocolName

type Err = ()

fn from_str(s: &str) -> Result<ProtocolName, ()>

impl Display for ProtocolName

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

Derived Implementations

impl PartialEq<ProtocolName> for ProtocolName

fn eq(&self, __arg_0: &ProtocolName) -> bool

fn ne(&self, __arg_0: &ProtocolName) -> bool

impl Eq for ProtocolName

impl Debug for ProtocolName

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl Clone for ProtocolName

fn clone(&self) -> ProtocolName

1.0.0fn clone_from(&mut self, source: &Self)