Enum hyper::version::HttpVersion [-]  [+] [src]

pub enum HttpVersion {
    Http09,
    Http10,
    Http11,
    Http20,
}

Represents a version of the HTTP spec.

Variants

Http09

HTTP/0.9

Http10

HTTP/1.0

Http11

HTTP/1.1

Http20

HTTP/2.0

Trait Implementations

impl String for HttpVersion

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

Derived Implementations

impl Show for HttpVersion

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

impl Copy for HttpVersion

impl PartialOrd for HttpVersion

fn partial_cmp(&self, __arg_0: &HttpVersion) -> Option<Ordering>

fn lt(&self, __arg_0: &HttpVersion) -> bool

fn le(&self, __arg_0: &HttpVersion) -> bool

fn gt(&self, __arg_0: &HttpVersion) -> bool

fn ge(&self, __arg_0: &HttpVersion) -> bool

impl PartialEq for HttpVersion

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

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