t.w.h._DictHeaders(DictMixin) : class documentation

Part of twisted.web.http_headers View Source View In Hierarchy

A dict-like wrapper around Headers to provide backwards compatibility for Request.received_headers and Request.headers which used to be plain dict instances.
Method __init__ Undocumented
Method __getitem__ Return the last value for header of key.
Method __setitem__ Set the given header.
Method __delitem__ Delete the given header.
Method keys Return a list of all header names.
Method copy Return a dict mapping each header name to the last corresponding header value.
Method setdefault No summary
Method __contains__ Return True if the named header is present, False otherwise.
Method __iter__ Return an iterator of the lowercase name of each header present.
Method iteritems Return an iterable of two-tuples of each lower-case header name and the last value for that header.
Instance Variable _headers The real header storage object. (type: Headers)
_headers =
The real header storage object. (type: Headers)
def __init__(self, headers): (source)
Undocumented
def __getitem__(self, key): (source)
Return the last value for header of key.
def __setitem__(self, key, value): (source)
Set the given header.
def __delitem__(self, key): (source)
Delete the given header.
def keys(self): (source)
Return a list of all header names.
def copy(self): (source)
Return a dict mapping each header name to the last corresponding header value.
def setdefault(self, name, value=None): (source)
Retrieve the last value for the given header name. If there are no values present for that header, set the value to value and return that instead. Note that None is the default for value for backwards compatibility, but header values may only be of type str.
def __contains__(self, name): (source)
Return True if the named header is present, False otherwise.
def __iter__(self): (source)
Return an iterator of the lowercase name of each header present.
def iteritems(self): (source)
Return an iterable of two-tuples of each lower-case header name and the last value for that header.
API Documentation for Twisted, generated by pydoctor at 2012-06-04 17:20:01.