Part of twisted.web.http_headers View Source View In Hierarchy
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 ) |
dict
mapping each header name to the last
corresponding header value.True
if key
is a header in this
collection, False
otherwise.