class documentation

class RequestCacheControl(ImmutableDictMixin, _CacheControl):

View In Hierarchy

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 RequestCacheControl object again you can convert the object into a string or call the to_header method. If you plan to subclass it and add your own items have a look at the sourcecode for that class.

New in version 0.5: In previous versions a CacheControl class existed that was used both for request and response.
Class Variable max​_stale Undocumented
Class Variable min​_fresh Undocumented
Class Variable only​_if​_cached Undocumented

Inherited from ImmutableDictMixin:

Class Method fromkeys Undocumented
Method __delitem__ Undocumented
Method __hash__ Undocumented
Method __reduce​_ex__ Undocumented
Method __setitem__ Undocumented
Method clear Undocumented
Method pop Undocumented
Method popitem Undocumented
Method setdefault Undocumented
Method update Undocumented
Method ​_iter​_hashitems Undocumented
Instance Variable ​_hash​_cache Undocumented

Inherited from _CacheControl:

Method __init__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
Method to​_header Convert the stored values into a cache control header.
Class Variable cache​_property Undocumented
Class Variable max​_age Undocumented
Class Variable no​_cache Undocumented
Class Variable no​_store Undocumented
Class Variable no​_transform Undocumented
Instance Variable on​_update Undocumented
Instance Variable provided Undocumented
Method ​_del​_cache​_value Used internally by the accessor properties.
Method ​_get​_cache​_value Used internally by the accessor properties.
Method ​_set​_cache​_value Used internally by the accessor properties.

Inherited from UpdateDictMixin (via _CacheControl):

Method pop Undocumented
Method setdefault Undocumented
Class Variable __delitem__ Undocumented
Class Variable __setitem__ Undocumented
Class Variable clear Undocumented
Class Variable popitem Undocumented
Class Variable update Undocumented
max_stale =

Undocumented

min_fresh =

Undocumented

only_if_cached =

Undocumented