Enum rotor_http::client::Version [] [src]

pub enum Version {
    Http10,
    Http11,
    Http20,
}

Represents a version of the HTTP spec.

HTTP/0.9 is only of historic importance. It is not supported by rotor-http and it will never be supported. Most requests that appear to be HTTP/0.9 are malformed HTTP/1.0 requests.

Variants

HTTP/1.0 protocol version.

HTTP/1.1 protocol version as described in RFC7230 and others.

HTTP/2 protocol version as described in RFC7540.

HTTP/2 switches HTTP to a binary transport and it is planned to support it in rotor-http.

Trait Implementations

impl Copy for Version
[src]

impl Clone for Version
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Version
[src]

Formats the value using the given formatter.

impl Eq for Version
[src]

impl Hash for Version
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for Version
[src]

This method returns an Ordering between self and other. Read more

impl PartialEq for Version
[src]

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

This method tests for !=.

impl PartialOrd for Version
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Display for Version
[src]

Formats the value using the given formatter. Read more