Skip to main content

ClientResolver

Type Alias ClientResolver 

Source
pub type ClientResolver = Arc<dyn Fn(HeaderMap) -> Pin<Box<dyn Future<Output = Result<Option<ApiClient>>> + Send>> + Send + Sync>;
Expand description

Your own authentication: given the request’s headers, the client they authenticate, or None to try the next way (the crate’s API keys) and then treat the request as a guest’s.

Aliased Type§

pub struct ClientResolver { /* private fields */ }