class documentation

class WSGIHeaderDict(DictMixin): (source)

View In Hierarchy

This dict-like class wraps a WSGI environ dict and provides convenient access to HTTP_* fields. Keys and values are native strings (2.x bytes or 3.x unicode) and keys are case-insensitive. If the WSGI environment contains non-native string values, these are de- or encoded using a lossless 'latin1' character set. The API will remain stable even on changes to the relevant PEPs. Currently PEP 333, 444 and 3333 are supported. (PEP 444 is the only one that uses non-native strings.)

Method __contains__ Undocumented
Method __delitem__ Undocumented
Method __getitem__ Undocumented
Method __init__ Undocumented
Method __iter__ Undocumented
Method __len__ Undocumented
Method __setitem__ Undocumented
Method keys Undocumented
Method raw Return the header value as is (may be bytes or unicode).
Class Variable cgikeys Undocumented
Instance Variable environ Undocumented
Method _ekey Translate header field name to CGI/WSGI environ key.
def __contains__(self, key): (source)

Undocumented

def __delitem__(self, key): (source)

Undocumented

def __getitem__(self, key): (source)

Undocumented

def __init__(self, environ): (source)

Undocumented

def __iter__(self): (source)

Undocumented

def __len__(self): (source)

Undocumented

def __setitem__(self, key, value): (source)

Undocumented

def keys(self): (source)

Undocumented

def raw(self, key, default=None): (source)

Return the header value as is (may be bytes or unicode).

cgikeys: tuple[str, ...] = (source)

Undocumented

Undocumented

def _ekey(self, key): (source)

Translate header field name to CGI/WSGI environ key.