Skip to main content

extract_api_key

Function extract_api_key 

Source
pub fn extract_api_key(headers: &HeaderMap) -> Option<String>
Expand description

Extracts the API key from request headers.

Checks x-api-key first, then Authorization: Bearer <key>.