pub struct Request { /* private fields */ }
Expand description

A request which can be executed with Client::execute().

Implementations

Constructs a new request.

Get the method.

Get a mutable reference to the method.

Get the url.

Get a mutable reference to the url.

Get the headers.

Get a mutable reference to the headers.

Get the body.

Get a mutable reference to the body.

Get the timeout.

Get a mutable reference to the timeout.

Get the http version.

Get a mutable reference to the http version.

Attempt to clone the request.

None is returned if the request can not be cloned, i.e. if the body is a stream.

Trait Implementations

Formats the value using the given formatter. Read more
Responses given by the service.
Errors produced by the service.
The future response value.
Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Process the request and return the response asynchronously. Read more
Responses given by the service.
Errors produced by the service.
The future response value.
Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Process the request and return the response asynchronously. Read more
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.

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

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more