Struct stream_httparse::streaming_parser::ReqParser [−][src]
pub struct ReqParser { /* fields omitted */ }
Expand description
A single Instance of the RequestParser that is used to parse HTTP-Requests
Implementations
Creates a new Request-Parser with the given capacity as its pre-reserved capacity to store the Head of the Request
Clears the internal Buffers and resets everything to be ready to receive and parse a new request
This should be the prefered way to parse mulitple sequential requests, as this avoids extra allocations
Returns a touple that stands for (done, data-left-in-buffer)
Explanation:
done
: True if the request has been fully received and parseddata-left-in-buffer
: The Amount of bytes at the end of the given slice that were unused
Finishes up the parsing and finalizes all the Data it received and returns a Request-Instance containing the parsed out Request
Auto Trait Implementations
impl RefUnwindSafe for ReqParser
impl UnwindSafe for ReqParser