pub trait ConfigExt: Sealed {
    fn base_uri_layer(&self) -> BaseUriLayer;
fn auth_layer(&self) -> Result<Option<AuthLayer>, Error>;
fn extra_headers_layer(&self) -> Result<ExtraHeadersLayer, Error>; }
This is supported on crate feature client only.
Expand description

Extensions to Config for custom Client.

See Client::new for an example.

This trait is sealed and cannot be implemented.

Required methods

Layer to set the base URI of requests to the configured server.

Optional layer to set up Authorization header depending on the config.

Layer to add non-authn HTTP headers depending on the config.

Implementors