class documentation

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): (source)

Undocumented

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

Undocumented

def __contains__(self, etag): (source)

Undocumented

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

Undocumented

def __iter__(self): (source)

Undocumented

def __len__(self): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def __str__(self): (source)

Undocumented

def as_set(self, include_weak=False): (source)

Convert the `ETags` object into a python set. Per default all the weak etags are not part of this set.

def contains(self, etag): (source)

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): (source)

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): (source)

Check if an etag is part of the set including weak and strong tags.

def is_strong(self, etag): (source)

Check if an etag is strong.

def is_weak(self, etag): (source)

Check if an etag is weak.

def to_header(self): (source)

Convert the etags set into a HTTP header string.

star_tag = (source)

Undocumented

Undocumented

Undocumented