Back to index

moin  1.9.0~rc2
Public Member Functions
MoinMoin.support.werkzeug.wrappers.ETagRequestMixin Class Reference
Inheritance diagram for MoinMoin.support.werkzeug.wrappers.ETagRequestMixin:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def cache_control
def if_match
def if_none_match
def if_modified_since
def if_unmodified_since

Detailed Description

Add entity tag and cache descriptors to a request object or object with
a WSGI environment available as :attr:`~BaseRequest.environ`.  This not
only provides access to etags but also to the cache control header.

Definition at line 761 of file wrappers.py.


Member Function Documentation

A :class:`RequestCacheControl` object for the incoming cache control
headers.

Definition at line 768 of file wrappers.py.

00768 
00769     def cache_control(self):
00770         """A :class:`RequestCacheControl` object for the incoming cache control
00771         headers.
00772         """
00773         cache_control = self.environ.get('HTTP_CACHE_CONTROL')
00774         return parse_cache_control_header(cache_control, None,
00775                                           RequestCacheControl)

Here is the call graph for this function:

An object containing all the etags in the `If-Match` header.

Definition at line 777 of file wrappers.py.

00777 
00778     def if_match(self):
00779         """An object containing all the etags in the `If-Match` header."""
00780         return parse_etags(self.environ.get('HTTP_IF_MATCH'))

Here is the call graph for this function:

The parsed `If-Modified-Since` header as datetime object.

Definition at line 787 of file wrappers.py.

00787 
00788     def if_modified_since(self):
00789         """The parsed `If-Modified-Since` header as datetime object."""
00790         return parse_date(self.environ.get('HTTP_IF_MODIFIED_SINCE'))

Here is the call graph for this function:

An object containing all the etags in the `If-None-Match` header.

Definition at line 782 of file wrappers.py.

00782 
00783     def if_none_match(self):
00784         """An object containing all the etags in the `If-None-Match` header."""
00785         return parse_etags(self.environ.get('HTTP_IF_NONE_MATCH'))

Here is the call graph for this function:

The parsed `If-Unmodified-Since` header as datetime object.

Definition at line 792 of file wrappers.py.

00792 
00793     def if_unmodified_since(self):
00794         """The parsed `If-Unmodified-Since` header as datetime object."""
00795         return parse_date(self.environ.get('HTTP_IF_UNMODIFIED_SINCE'))
00796 

Here is the call graph for this function:


The documentation for this class was generated from the following file: