class documentation

class WSGIHeaderDict(DictMixin):

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 raw Return the header value as is (may be bytes or unicode).
Class Variable cgikeys Undocumented
Method __contains__ Undocumented
Method __delitem__ Undocumented
Method __getitem__ Undocumented
Method __init__ Undocumented
Method __iter__ Undocumented
Method __len__ Undocumented
Method __setitem__ Undocumented
Method ‚Äč_ekey Translate header field name to CGI/WSGI environ key.
Method keys Undocumented
Instance Variable environ Undocumented
def raw(self, key, default=None):
Return the header value as is (may be bytes or unicode).
cgikeys: tuple[str, ...] =

Undocumented

def __contains__(self, key):

Undocumented

def __delitem__(self, key):

Undocumented

def __getitem__(self, key):

Undocumented

def __init__(self, environ):

Undocumented

def __iter__(self):

Undocumented

def __len__(self):

Undocumented

def __setitem__(self, key, value):

Undocumented

def _ekey(self, key):
Translate header field name to CGI/WSGI environ key.
def keys(self):

Undocumented

environ =

Undocumented