Skip to main content

KeyResolver

Type Alias KeyResolver 

Source
pub type KeyResolver = Arc<dyn Fn(&str) -> Option<Vec<u8>> + Send + Sync>;
Expand description

Closure that maps key_idOption<secret>. Implementors typically look up the key in a DB / cache. Returning None rejects the request with 401.

Aliased Type§

pub struct KeyResolver { /* private fields */ }