Struct stream_httparse::Response[][src]

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

Represents a single HTTP-Request

Implementations

Creates a new Response with the given Data as its inital State

Serialzes the Response and returns the Data as a tuple of form (HTTP-Head, HTTP-Body)

Returns the Protocol of the Response

Returns the StatusCode of the Response

Returns the Headers of the Response

Returns the Body of the Response

Adds the Key-Value Pair as a new Header to the Response or replaces the old Value of the Header if it already existed on the Response

Replaces the old Body of the Response with the new given Body and updates the Content-Length Header as well with the new Length

Checks if the Response is send using Transfer-Encoding: Chunked

Clones the entire Response to produce a new indepandent Response

Trait Implementations

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.

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.