class documentation

class FrozenHTTPHeaders: (source)

Implements interfaces: klein._imessage.IHTTPHeaders

View In Hierarchy

Immutable HTTP entity headers.

Method getValues Get the values associated with the given header name.
Instance Variable rawHeaders 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.
def getValues(self, name): (source)

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:AnyStrThe name of the header to look for.
Returns
Iterable[AnyStr]The values of the header with the given name.
rawHeaders: RawHeaders = (source)

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.