Struct chttp::client::Client [] [src]

pub struct Client { /* fields omitted */ }

An HTTP client for making requests.

The client maintains a connection pool internally and is expensive to create, so we recommend re-using your clients instead of discarding and recreating them.

Methods

impl Client
[src]

[src]

Create a new HTTP client builder.

[src]

Create a new HTTP client using the default configuration.

[src]

Sends a GET request.

[src]

Sends a POST request.

[src]

Sends a PUT request.

[src]

Sends a DELETE request.

[src]

Sends a request and returns the response.

Trait Implementations

impl Default for Client
[src]

[src]

Returns the "default value" for a type. Read more