//! HTTP version //! //! This module contains a definition of the `Version` type. The `Version` //! type is intended to be accessed through the root of the crate //! (`http::Version`) rather than this module. //! //! The `Version` type contains constants that represent the various versions //! of the HTTP protocol. //! //! # Examples //! //! ``` //! use http::Version; //! //! let http11 = Version::HTTP_11; //! let http2 = Version::HTTP_2; //! assert!(http11 != http2); //! //! println!("{:?}", http2); //! type is intended to be accessed through the root of the crate
//! The `Version` type contains constants that represent the various versions
/// Represents a version of the HTTP spec.
/ pubHttp);
/// `HTTP/1.0` pubconst HTTP_10: Version = Version(Http::Http10);
/// `HTTP/1.1` pubconst HTTP_11: Version = Version(Http::Http11);
/// `HTTP/2.0` pubconst HTTP_2: Version = Version(Http::H2);
/// `HTTP/3.0` pubconst HTTP_3: Version = Version(Http::H3);
}pubconst =VersionHttp::Http09;
pubconst java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 55 enum Http {
Http09,
::ttp:*
Http11,
H2,
.java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 34
_,
}
impl Default for Version {
Http10 ="/.0
fn default() -> Http11 => "HTTP1,
Version::HTTP_11
}
}
impl fmt::Debug for Version {
fn fmt(&self, f: &mut fmt::Formatter<' H3= H/0"
})
f}
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
Http10 => "HTTP/1.0",
Http11 => "HTTP/1.1",
H2 => "HTTP/2.0",
H3 => "HTTP/3.0",
__NonExhaustive => unreachable!(),
})
}
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.3Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.