werkzeug.ETags¶
-
class
werkzeug.ETags(strong_etags=None, weak_etags=None, star_tag=False)[source]¶ A set that can be used to check if one etag is present in a collection of etags.
Methods¶
__init__([strong_etags, weak_etags, star_tag]) |
|
as_set([include_weak]) |
Convert the ETags object into a python set. |
contains(etag) |
Check if an etag is part of the set ignoring weak tags. |
contains_raw(etag) |
When passed a quoted tag it will check if this tag is part of the set. |
contains_weak(etag) |
Check if an etag is part of the set including weak and strong tags. |
is_weak(etag) |
Check if an etag is weak. |
to_header() |
Convert the etags set into a HTTP header string. |