Struct httpcodec::Request [] [src]

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

HTTP request message.

Methods

impl<T> Request<T>
[src]

[src]

Makes a new Request instance with the given request-line components and body.

[src]

Returns the method of the request.

[src]

Returns the target of the request.

[src]

Returns the HTTP version of the request.

[src]

Returns the header of the request.

[src]

Returns the mutable header of the request.

[src]

Returns a reference to the body of the request.

[src]

Returns a mutable reference to the body of the request.

[src]

Takes ownership of the request, and returns its body.

[src]

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

[src]

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

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

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

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