class RequestCacheControl(ImmutableDictMixin, _CacheControl): (source)
A cache control for requests. This is immutable and gives access to all the request-relevant cache control headers. To get a header of the :class:`RequestCacheControl` object again you can convert the object into a string or call the :meth:`to_header` method. If you plan to subclass it and add your own items have a look at the sourcecode for that class. .. versionchanged:: 2.1.0 Setting int properties such as ``max_age`` will convert the value to an int. .. versionadded:: 0.5 In previous versions a `CacheControl` class existed that was used both for request and response.
Class Variable | max |
Undocumented |
Class Variable | min |
Undocumented |
Class Variable | only |
Undocumented |
Inherited from ImmutableDictMixin
:
Class Method | fromkeys |
Undocumented |
Method | __delitem__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __reduce |
Undocumented |
Method | __setitem__ |
Undocumented |
Method | clear |
Undocumented |
Method | pop |
Undocumented |
Method | popitem |
Undocumented |
Method | setdefault |
Undocumented |
Method | update |
Undocumented |
Method | _iter |
Undocumented |
Instance Variable | _hash |
Undocumented |
Inherited from _CacheControl
(via ImmutableDictMixin
):
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | to |
Convert the stored values into a cache control header. |
Class Variable | cache |
Undocumented |
Class Variable | max |
Undocumented |
Class Variable | no |
Undocumented |
Class Variable | no |
Undocumented |
Class Variable | no |
Undocumented |
Instance Variable | on |
Undocumented |
Instance Variable | provided |
Undocumented |
Method | _del |
Used internally by the accessor properties. |
Method | _get |
Used internally by the accessor properties. |
Method | _set |
Used internally by the accessor properties. |