Enum reqwest::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 Ord for HttpVersion
fn cmp(&self, __arg_0: &HttpVersion) -> Ordering
impl Debug for HttpVersion
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for HttpVersion
fn clone(&self) -> HttpVersion
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Hash for HttpVersion
impl PartialOrd<HttpVersion> for HttpVersion
fn partial_cmp(&self, __arg_0: &HttpVersion) -> Option<Ordering>
impl PartialEq<HttpVersion> for HttpVersion
fn eq(&self, __arg_0: &HttpVersion) -> bool
impl Display for HttpVersion
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.