[−][src]Struct http_parser::parser::HttpRequestParser
The Parser
structure.
Fields
packet: &'a str
request: Request<'a>
state: S
Implementations
impl<'a, T> HttpRequestParser<'a, T> where
T: RequestParserState,
[src]
T: RequestParserState,
fn skip_spaces(&mut self)
[src]
Skip existing spaces (other whitespace is not considered).
fn skip_crlf(&mut self) -> Result<(), ParsingError>
[src]
If the next two characters are \r\n
.
fn parse_until_char(&mut self, chr: u8) -> &'a str
[src]
impl<'a, S> HttpRequestParser<'a, RequestLine<S>> where
S: RequestLineParserState,
[src]
S: RequestLineParserState,
pub fn start(packet: &'a str) -> HttpRequestParser<'a, RequestLine<Method>>
[src]
Create a new HttpRequestParser
which starts in RequestLine<Method>
.
impl<'a> HttpRequestParser<'a, Header>
[src]
fn parse_line(&mut self)
[src]
Parse a line in the header.
Trait Implementations
impl<'a, S: Debug> Debug for HttpRequestParser<'a, S> where
S: RequestParserState,
[src]
S: RequestParserState,
impl<'a> Parse for HttpRequestParser<'a, RequestLine<Method>>
[src]
type NextState = Result<HttpRequestParser<'a, RequestLine<Uri>>, ParsingError>
NextState
type are of kind Parser<'a, State>
Sadly we can't do type NextParser = Parser<'a, Self::NextState>
and allow the final user to simply define type NextState
until https://github.com/rust-lang/rust/issues/29661 is resolved. Read more
fn parse(self) -> Self::NextState
[src]
impl<'a> Parse for HttpRequestParser<'a, RequestLine<Uri>>
[src]
type NextState = Result<HttpRequestParser<'a, RequestLine<Version>>, ParsingError>
NextState
type are of kind Parser<'a, State>
Sadly we can't do type NextParser = Parser<'a, Self::NextState>
and allow the final user to simply define type NextState
until https://github.com/rust-lang/rust/issues/29661 is resolved. Read more
fn parse(self) -> Self::NextState
[src]
impl<'a> Parse for HttpRequestParser<'a, RequestLine<Version>>
[src]
type NextState = Result<HttpRequestParser<'a, Header>, ParsingError>
NextState
type are of kind Parser<'a, State>
Sadly we can't do type NextParser = Parser<'a, Self::NextState>
and allow the final user to simply define type NextState
until https://github.com/rust-lang/rust/issues/29661 is resolved. Read more
fn parse(self) -> Self::NextState
[src]
impl<'a> Parse for HttpRequestParser<'a, Header>
[src]
type NextState = Result<HttpRequestParser<'a, Body>, ParsingError>
NextState
type are of kind Parser<'a, State>
Sadly we can't do type NextParser = Parser<'a, Self::NextState>
and allow the final user to simply define type NextState
until https://github.com/rust-lang/rust/issues/29661 is resolved. Read more
fn parse(self) -> Self::NextState
[src]
impl<'a> Parse for HttpRequestParser<'a, Body>
[src]
Auto Trait Implementations
impl<'a, S> RefUnwindSafe for HttpRequestParser<'a, S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, S> Send for HttpRequestParser<'a, S> where
S: Send,
S: Send,
impl<'a, S> Sync for HttpRequestParser<'a, S> where
S: Sync,
S: Sync,
impl<'a, S> Unpin for HttpRequestParser<'a, S> where
S: Unpin,
S: Unpin,
impl<'a, S> UnwindSafe for HttpRequestParser<'a, S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,