Struct httpcodec::Response [] [src]

pub struct Response<T> { /* fields omitted */ }

HTTP response message.

Methods

impl<T> Response<T>
[src]

[src]

Makes a new Response instance with the given status-line components and body.

[src]

Returns the HTTP version of the response.

[src]

Returns the status code of the response.

[src]

Returns the reason phrase of the response.

[src]

Returns the header of the response.

[src]

Returns the mutable header of the response.

[src]

Returns a reference to the body of the response.

[src]

Returns a mutable reference to the body of the response.

[src]

Converts the body of the response to U by using the given function.

[src]

Takes ownership of the response, and returns its body.

[src]

Splits the head part and the body part of the response.

Trait Implementations

impl<T: Debug> Debug for Response<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Display> Display for Response<T>
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for Response<T> where
    T: Send

impl<T> Sync for Response<T> where
    T: Sync