Enum reqwest::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 Display for ProtocolName

impl Debug for ProtocolName

Formats the value using the given formatter.

impl PartialEq<ProtocolName> for ProtocolName

impl Clone for ProtocolName

impl Eq for ProtocolName

impl FromStr for ProtocolName