Struct reqwest::Client [] [src]

pub struct Client { /* fields omitted */ }

A Client to make Requests with.

The Client has various configuration values to tweak, but the defaults are set to what is usually the most commonly desired value.

The Client holds a connection pool internally, so it is advised that you create one and reuse it.

Methods

impl Client
[src]

Constructs a new Client.

Set a RedirectPolicy for this client.

Convenience method to make a GET request to a URL.

Convenience method to make a POST request to a URL.

Convenience method to make a HEAD request to a URL.

Start building a Request with the Method and Url.

Returns a RequestBuilder, which will allow setting headers and request body before sending.

Trait Implementations

impl Debug for Client
[src]

Formats the value using the given formatter.