Struct stream_httparse::Request[][src]

pub struct Request<'a> { /* fields omitted */ }
Expand description

Represents a single HTTP-Request

Implementations

Creates a new Request with the given Data as its initial Data

Serializes the Request and returns the final Data as a tuple of (HTTP-Head, HTTP-Body)

Returns the Protocol of the Request

Returns the Method of the Request

Returns the Path of the Request

Returns the Headers of the Request

Returns a mutable Reference to the Headers of the Request

Returns the Body of the Request

Checks if the Requests expects a Keep-alive connection

Overwrites the Path with the new Path

Overwrites the Path with the new Path, but using an owned String instead of a reference

Replaces the current Body with the given Data

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

Converts the given value to a String. Read more

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.