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<RequestParseStage> for RequestParseStage
impl PartialEq<RequestParseStage> for RequestParseStage
source§fn eq(&self, other: &RequestParseStage) -> bool
fn eq(&self, other: &RequestParseStage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<RequestParseStage> for RequestParseStage
impl PartialOrd<RequestParseStage> for RequestParseStage
source§fn partial_cmp(&self, other: &RequestParseStage) -> Option<Ordering>
fn partial_cmp(&self, other: &RequestParseStage) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for RequestParseStage
impl StructuralEq for RequestParseStage
impl StructuralPartialEq for RequestParseStage
Auto Trait Implementations§
impl RefUnwindSafe for RequestParseStage
impl Send for RequestParseStage
impl Sync for RequestParseStage
impl Unpin for RequestParseStage
impl UnwindSafe for RequestParseStage
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more