pub enum RequestParseStage {
Method,
Path,
Version,
HeaderName(u32),
HeaderValue(u32),
}
Expand description
Stages of parsing a HTTP Request
.
Variants§
Method
We are parsing the Method
.
Path
We are parsing the Uri::path_and_query
part of the Uri
.
Version
We are parsing the Version
.
HeaderName(u32)
We are parsing a HeaderName
.
The number indicates the position of this name.
HeaderValue(u32)
We are parsing a HeaderValue
.
The number indicates the position of this value.
Implementations§
Trait Implementations§
source§impl Debug for RequestParseStage
impl Debug for RequestParseStage
source§impl Ord for RequestParseStage
impl Ord for RequestParseStage
source§fn cmp(&self, other: &RequestParseStage) -> Ordering
fn cmp(&self, other: &RequestParseStage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RequestParseStage
impl PartialEq for RequestParseStage
source§impl PartialOrd for RequestParseStage
impl PartialOrd for RequestParseStage
impl Eq for RequestParseStage
impl StructuralPartialEq for RequestParseStage
Auto Trait Implementations§
impl Freeze for RequestParseStage
impl RefUnwindSafe for RequestParseStage
impl Send for RequestParseStage
impl Sync for RequestParseStage
impl Unpin for RequestParseStage
impl UnwindSafe for RequestParseStage
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more