Expand description
HTTP caching helpers covering validators, freshness, and revalidation.
Implements parsing of Cache-Control, derivation of freshness metadata, and
helpers for ensuring compliant response headers per RFC 9111.
Structs§
- Cache
Control - Represents parsed Cache-Control directives.
- Cache
Policy - Represents cache policy metadata derived from headers.
Functions§
- ensure_
age_ header - Ensure the Age header is set when absent (origin servers should emit Age).
- freshness_
lifetime - Compute the freshness lifetime hinted by the headers.
- parse_
cache_ control - Parse a Cache-Control header into structured directives.
- policy_
from_ headers - Analyse response headers to produce a
CachePolicy.