class documentation

class HeaderDict(MultiDict): (source)

View In Hierarchy

A case-insensitive version of :class:`MultiDict` that defaults to replace the old value instead of appending it.

Method __contains__ Undocumented
Method __delitem__ Undocumented
Method __getitem__ Undocumented
Method __init__ Undocumented
Method __setitem__ Undocumented
Method append Add a new value to the list of values for this key.
Method filter Undocumented
Method get Return the most recent value for a key.
Method getall Return a (possibly empty) list of values for a key.
Method replace Replace the list of values with a single value.
Instance Variable dict Undocumented

Inherited from MultiDict:

Method __iter__ Undocumented
Method __len__ Undocumented
Method allitems Undocumented
Method items Undocumented
Method keys Undocumented
Method values Undocumented
def __contains__(self, key): (source)

Undocumented

def __delitem__(self, key): (source)

Undocumented

def __getitem__(self, key): (source)

Undocumented

def __init__(self, *a, **ka): (source)

Undocumented

def __setitem__(self, key, value): (source)

Undocumented

def append(self, key, value): (source)

Add a new value to the list of values for this key.

def filter(self, names): (source)

Undocumented

def get(self, key, default=None, index=-1): (source)

Return the most recent value for a key. :param default: The default value to be returned if the key is not present or the type conversion fails. :param index: An index for the list of available values. :param type: If defined, this callable is used to cast the value into a specific type. Exception are suppressed and result in the default value to be returned.

def getall(self, key): (source)

Return a (possibly empty) list of values for a key.

def replace(self, key, value): (source)

Replace the list of values with a single value.

Undocumented