class documentation

class HasHeaders: (source)

View In Hierarchy

Since Twisted adds headers to a request, such as the host and the content length, it's necessary to test whether request headers CONTAIN the expected headers (the ones that are not automatically added by Twisted). This wraps a set of headers, and can be used in an equality test against a superset if the provided headers. The headers keys are lowercased, and keys and values are compared in their bytes-encoded forms. Headers should be provided as a mapping from strings or bytes to a list of strings or bytes.

Method __eq__ Undocumented
Method __init__ Undocumented
Method __ne__ Undocumented
Method __repr__ Undocumented
Instance Variable _headers Undocumented
def __eq__(self, other_headers): (source)

Undocumented

def __init__(self, headers): (source)

Undocumented

def __ne__(self, other_headers): (source)

Undocumented

def __repr__(self): (source)

Undocumented

_headers = (source)

Undocumented