pub enum Version {
Http10,
Http11,
Http2,
Http3,
}Expand description
The HTTP version from the request line.
Only the HTTP/1.x family is parsed by this engine; HTTP/2 and HTTP/3
use entirely different framing and are out of scope.
Variants§
Http10
HTTP/1.0 — connections close by default unless Connection: keep-alive.
Http11
HTTP/1.1 — connections persist by default unless Connection: close.
Http2
HTTP/2 (RFC 9113) — binary, multiplexed; framing replaces the textual request line. Carried on a connection negotiated via ALPN.
Http3
HTTP/3 (RFC 9114) — like HTTP/2 but carried over QUIC streams.
Implementations§
Trait Implementations§
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.