Struct reqwest::Request[][src]

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

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

Implementations

This is supported on non-WebAssembly only.

Constructs a new request.

This is supported on non-WebAssembly only.

Get the method.

This is supported on non-WebAssembly only.

Get a mutable reference to the method.

This is supported on non-WebAssembly only.

Get the url.

This is supported on non-WebAssembly only.

Get a mutable reference to the url.

This is supported on non-WebAssembly only.

Get the headers.

This is supported on non-WebAssembly only.

Get a mutable reference to the headers.

This is supported on non-WebAssembly only.

Get the body.

This is supported on non-WebAssembly only.

Get a mutable reference to the body.

This is supported on non-WebAssembly only.

Get the timeout.

This is supported on non-WebAssembly only.

Get a mutable reference to the timeout.

This is supported on non-WebAssembly only.

Get the http version.

This is supported on non-WebAssembly only.

Get a mutable reference to the http version.

This is supported on non-WebAssembly only.

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

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

Performs the conversion.

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

Performs the conversion.

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.