|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __init__ (self, strong_etags=None, weak_etags=None, star_tag=False) |
| def | as_set (self, include_weak=False) |
| def | is_weak (self, etag) |
| def | is_strong (self, etag) |
| def | contains_weak (self, etag) |
| def | contains (self, etag) |
| def | contains_raw (self, etag) |
| def | to_header (self) |
| def | __call__ (self, etag=None, data=None, include_weak=False) |
| def | __bool__ (self) |
| def | __str__ (self) |
| def | __iter__ (self) |
| def | __contains__ (self, etag) |
| def | __repr__ (self) |
Data Fields | |
| star_tag | |
A set that can be used to check if one etag is present in a collection of etags.
| def __init__ | ( | self, | |
strong_etags = None, |
|||
weak_etags = None, |
|||
star_tag = False |
|||
| ) |
| def __bool__ | ( | self | ) |
| def __call__ | ( | self, | |
etag = None, |
|||
data = None, |
|||
include_weak = False |
|||
| ) |
| def __contains__ | ( | self, | |
| etag | |||
| ) |
| def __iter__ | ( | self | ) |
| def __repr__ | ( | self | ) |
| def __str__ | ( | self | ) |
| def as_set | ( | self, | |
include_weak = False |
|||
| ) |
Convert the `ETags` object into a python set. Per default all the weak etags are not part of this set.
| def contains | ( | self, | |
| etag | |||
| ) |
Check if an etag is part of the set ignoring weak tags. It is also possible to use the ``in`` operator.
| def contains_raw | ( | self, | |
| etag | |||
| ) |
When passed a quoted tag it will check if this tag is part of the set. If the tag is weak it is checked against weak and strong tags, otherwise strong only.
| def contains_weak | ( | self, | |
| etag | |||
| ) |
Check if an etag is part of the set including weak and strong tags.
| def is_strong | ( | self, | |
| etag | |||
| ) |
Check if an etag is strong.
| def is_weak | ( | self, | |
| etag | |||
| ) |
Check if an etag is weak.
| def to_header | ( | self | ) |
Convert the etags set into a HTTP header string.
| star_tag |