Skip to main content

context_from_headers

Function context_from_headers 

Source
pub fn context_from_headers(headers: &HeaderMap) -> Context
Expand description

Builds a Context from common request headers.

Reads x-tenant as a string, when present — the same key the in-process rate limiter in wardline-guards uses in the examples.