CacheControl
struct CacheControlParsed Cache-Control directive set.
Boolean directives are True when present; numeric directives
are Optional[Int] (None when absent, Some(seconds) when
present with a value). Negative or unparseable numeric values
are silently dropped per RFC 9111 §5.2 ("If the value is
invalid, it should be treated as if it were not present").
Implements Copyable, Defaultable, Movable
- Fields
no_cache: Boolno_store: Boolno_transform: Boolpublic: Boolprivate: Boolmust_revalidate: Boolproxy_revalidate: Boolimmutable: Boolmax_age: Optional[Int]s_maxage: Optional[Int]stale_while_revalidate: Optional[Int]stale_if_error: Optional[Int]unknown_directives: List[String]
__init__
def __init__(out self) copy
def copy(self) -> Self