Part of twisted.web2.http_headers View Source View In Hierarchy
Method | __init__ | Undocumented |
Method | hasHeader | Does a header with the given name exist? |
Method | getRawHeaders | Returns a list of headers matching the given name as the raw string given. |
Method | getHeader | Ret9urns the parsed representation of the given header. The exact form of the return value depends on the header in question. |
Method | setRawHeaders | Sets the raw representation of the given header. Value should be a list of strings, each being one header of the given name. |
Method | setHeader | Sets the parsed representation of the given header. Value should be a list of objects whose exact form depends on the header in question. |
Method | addRawHeader | Add a raw value to a header that may or may not already exist. If it exists, add it as a separate header to output; do not replace anything. |
Method | removeHeader | Removes the header named. |
Method | __repr__ | Undocumented |
Method | canonicalNameCaps | Return the name with the canonical capitalization, if known, otherwise, Caps-After-Dashes |
Method | getAllRawHeaders | Return an iterator of key,value pairs of all headers contained in this object, as strings. The keys are capitalized in canonical capitalization. |
Method | makeImmutable | Make this header set immutable. All mutating operations will raise an exception. |
Method | _setRawHeaders | Undocumented |
Method | _toParsed | Undocumented |
Method | _toRaw | Undocumented |
Method | _mutateRaise | Undocumented |
Ret9urns the parsed representation of the given header. The exact form of the return value depends on the header in question.
If no parser for the header exists, raise ValueError.
If the header doesn't exist, return default (or None if not specified)