twisted.web.http_headers._DictHeaders(MutableMapping)
class documentationtwisted.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 ) |
Return a dict
mapping each header name to the last
corresponding header value.
Return True
if key
is a header in this
collection, False
otherwise.