pub struct Client<R: DnsResolver> { /* private fields */ }
Expand description

A Client to make outgoing HTTP requests.

Uses an specific DNS resolver.

Implementations§

Create a new client with a specific DNS resolver.

This bypasses /etc/resolv.conf.

Set a timeout (default setting is no timeout).

Shorthand function to do a GET request with HttpClient::request.

Create a new client with the system resolver from /etc/resolv.conf.

Trait Implementations§

Formats the value using the given formatter. Read more

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.

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.