Struct docktape::Request[][src]

pub struct Request<B = Body> { /* fields omitted */ }

An HTTP Request

Methods

impl<B> Request<B>
[src]

Construct a new Request.

Read the Request Uri.

Read the Request Version.

Read the Request headers.

Read the Request method.

Read the Request body.

Get a mutable reference to the Request body.

The target path of this Request.

The query string of this Request.

Set the Method of this request.

Get a mutable reference to the Request headers.

Set the Uri of this request.

Set the HttpVersion of this request.

Set the body of the request.

By default, the body will be sent using Transfer-Encoding: chunked. To override this behavior, manually set a [ContentLength] header with the length of body.

Set that the URI should use the absolute form.

This is only needed when talking to HTTP/1 proxies to URLs not protected by TLS.

impl Request<Body>
[src]

Deconstruct this Request into its pieces.

Modifying these pieces will have no effect on how hyper behaves.

Take the Request body.

Trait Implementations

impl<B> Debug for Request<B>
[src]

Formats the value using the given formatter. Read more

impl From<Message<__ProtoRequest, Body<Chunk, Error>>> for Request<Body>
[src]

Performs the conversion.

Auto Trait Implementations

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

impl<B = Body> !Sync for Request<B>