class documentation

This dict stores multiple values per key, but behaves exactly like a normal dict in that it returns only the newest value for any given key. There are special methods available to access the full list of values.

Method __contains__ Undocumented
Method __delitem__ Undocumented
Method __getitem__ Undocumented
Method __init__ Undocumented
Method __iter__ Undocumented
Method __len__ Undocumented
Method __setitem__ Undocumented
Method allitems Undocumented
Method append Add a new value to the list of values for this key.
Method get Return the most recent value for a key.
Method getall Return a (possibly empty) list of values for a key.
Method items Undocumented
Method keys Undocumented
Method replace Replace the list of values with a single value.
Method values Undocumented
Instance Variable dict Undocumented
def __contains__(self, key): (source)
overridden in bottle.HeaderDict

Undocumented

def __delitem__(self, key): (source)
overridden in bottle.HeaderDict

Undocumented

def __getitem__(self, key): (source)
overridden in bottle.HeaderDict

Undocumented

def __init__(self, *a, **k): (source)
overridden in bottle.HeaderDict

Undocumented

def __iter__(self): (source)

Undocumented

def __len__(self): (source)

Undocumented

def __setitem__(self, key, value): (source)
overridden in bottle.HeaderDict

Undocumented

def allitems(self): (source)

Undocumented

def append(self, key, value): (source)
overridden in bottle.HeaderDict

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

def get(self, key, default=None, index=-1, type=None): (source)
overridden in bottle.HeaderDict

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)
overridden in bottle.HeaderDict

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

def items(self): (source)

Undocumented

def keys(self): (source)

Undocumented

def replace(self, key, value): (source)
overridden in bottle.HeaderDict

Replace the list of values with a single value.

def values(self): (source)

Undocumented

overridden in bottle.HeaderDict

Undocumented