class documentation
class HTTPHeadersWrappingHeaders: (source)
Implements interfaces: klein._imessage.IMutableHTTPHeaders
HTTP entity headers.
This is an IMutableHTTPHeaders
implementation that wraps a Headers
object.
Method | add |
Add the given header name/value pair. |
Method | get |
Get the values associated with the given header name. |
Method | remove |
Remove all header name/value pairs for the given header name. |
Property | raw |
Raw header data as a tuple in the from: ((name, value), ...). name and value are bytes. Headers are provided in the order that they were received. Headers with multiple values are provided as separate name and value pairs. |
Instance Variable | _headers |
Undocumented |
Get the values associated with the given header name.
If the given name is bytes
, the value will be returned as the raw header bytes
.
If the given name is str
, the name will be encoded as ISO-8859-1 and the value will be returned as text, by decoding the raw header value bytes with ISO-8859-1.
Parameters | |
name:AnyStr | The name of the header to look for. |
Returns | |
Iterable[ | The values of the header with the given name. |