class documentation

class ETags(Collection):

View In Hierarchy

A set that can be used to check if one etag is present in a collection of etags.
Method __bool__ Undocumented
Method __call__ Undocumented
Method __contains__ Undocumented
Method __init__ Undocumented
Method __iter__ Undocumented
Method __len__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
Method as​_set Convert the ETags object into a python set. Per default all the weak etags are not part of this set.
Method contains Check if an etag is part of the set ignoring weak tags. It is also possible to use the in operator.
Method contains​_raw 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.
Method contains​_weak Check if an etag is part of the set including weak and strong tags.
Method is​_strong Check if an etag is strong.
Method is​_weak Check if an etag is weak.
Method to​_header Convert the etags set into a HTTP header string.
Instance Variable star​_tag Undocumented
Instance Variable ​_strong Undocumented
Instance Variable ​_weak Undocumented
def __bool__(self):

Undocumented

def __call__(self, etag=None, data=None, include_weak=False):

Undocumented

def __contains__(self, etag):

Undocumented

def __init__(self, strong_etags=None, weak_etags=None, star_tag=False):

Undocumented

def __iter__(self):

Undocumented

def __len__(self):

Undocumented

def __repr__(self):

Undocumented

def __str__(self):

Undocumented

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 =

Undocumented

_strong =

Undocumented

_weak =

Undocumented