Enum kvarn_async::prelude::parse::RequestParseStage
source · 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 more