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

ClientBuilder provides a series of builder methods to easily construct a Client.

Implementations

Create a builder for a given URL.

Set the request method used for the initial connection to the SSE endpoint.

Set the request body used for the initial connection to the SSE endpoint.

Set the last event id for a stream when it is created. If it is set, it will be sent to the server in case it can replay missed events.

Set a HTTP header on the SSE request.

Set a read timeout for the underlying connection. There is no read timeout by default.

Configure the client’s reconnect behaviour according to the supplied ReconnectOptions.

Customize the client’s following behavior when served a redirect. To disable following redirects, pass 0. By default, the limit is DEFAULT_REDIRECT_LIMIT.

Build with a specific client connector.

Build with an HTTP client connector.

Build with an HTTPS client connector, using the OS root certificate store.

Build with the given hyper::client::Client.

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