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

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

A dict-like wrapper around Headers to provide backwards compatibility for twisted.web.http.Request.received_headers and twisted.web.http.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 __iter__ Return an iterator of the lowercase name of each header present.
Method __len__ Return the number of distinct headers present.
Method copy Return a dict mapping each header name to the last corresponding header value.
Method has_key Return True if key is a header in this collection, False otherwise.
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 __iter__(self): (source)

Return an iterator of the lowercase name of each header present.

def __len__(self): (source)

Return the number of distinct headers present.

def copy(self): (source)

Return a dict mapping each header name to the last corresponding header value.

def has_key(self, key): (source)

Return True if key is a header in this collection, False otherwise.

API Documentation for Twisted, generated by pydoctor at 2015-04-13 15:26:48.