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 parsed
  • data-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

Returns the current Buffer of the Parser

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.