class documentation
class FrozenHTTPHeaders: (source)
Implements interfaces: klein._imessage.IHTTPHeaders
Immutable HTTP entity headers.
Method | get |
Get the values associated with the given header name. |
Instance Variable | 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. |
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. |