Struct hyper::client::Request [] [src]

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

An HTTP Request

Methods

impl<B> Request<B>
[src]

[src]

Construct a new Request.

[src]

Read the Request Uri.

[src]

Read the Request Version.

[src]

Read the Request headers.

[src]

Read the Request method.

[src]

Read the Request body.

[src]

Get a mutable reference to the Request body.

[src]

The target path of this Request.

[src]

The query string of this Request.

[src]

Set the Method of this request.

[src]

Get a mutable reference to the Request headers.

[src]

Set the Uri of this request.

[src]

Set the HttpVersion of this request.

[src]

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.

[src]

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]

[src]

Deconstruct this Request into its pieces.

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

[src]

Take the Request body.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Performs the conversion.