class documentation

class EnvironHeaders(ImmutableHeadersMixin, Headers):

View In Hierarchy

Read only version of the headers from a WSGI environment. This provides the same interface as Headers and is constructed from a WSGI environment.

From Werkzeug 0.3 onwards, the KeyError raised by this class is also a subclass of the ~exceptions.BadRequest HTTP exception and will render a page for a 400 BAD REQUEST if caught in a catch-all for HTTP exceptions.

Method __eq__ Undocumented
Method __getitem__ Undocumented
Method __init__ Undocumented
Method __iter__ Yield (key, value) tuples.
Method __len__ Undocumented
Method copy Undocumented
Class Variable __hash__ Undocumented
Instance Variable environ Undocumented

Inherited from ImmutableHeadersMixin:

Method __delitem__ Undocumented
Method __setitem__ Undocumented
Method add Undocumented
Method add​_header Undocumented
Method extend Undocumented
Method insert Undocumented
Method pop Undocumented
Method popitem Undocumented
Method remove Undocumented
Method set Undocumented
Method setdefault Undocumented
Method setlist Undocumented
Method setlistdefault Undocumented
Method update Undocumented

Inherited from Headers:

Method __contains__ Check if a key is present.
Method __copy__ Undocumented
Method __delitem__ Undocumented
Method __repr__ Undocumented
Method __setitem__ Like set but also supports index/slice based setting.
Method __str__ Returns formatted headers suitable for HTTP transmission.
Method add Add a new header tuple to the list.
Method add​_header Add a new header tuple to the list.
Method clear Clears all headers.
Method extend Extend headers in this object with items from another object containing header items as well as keyword arguments.
Method get No summary
Method get​_all Return a list of all the values for the named field.
Method getlist No summary
Method has​_key
Deprecated since version 2.0: Will be removed in Werkzeug 2.1. Use key in data instead.
Method items Undocumented
Method keys Undocumented
Method pop Removes and returns a key or index.
Method popitem Removes a key or index and returns a (key, value) item.
Method remove Remove a key.
Method set Remove all header tuples for key and add a new one. The newly added key either appears at the end of the list if there was no entry or replaces the first one.
Method setdefault Return the first value for the key if it is in the headers, otherwise set the header to the value given by default and return that.
Method setlist Remove any existing values for a header and add new ones.
Method setlistdefault Return the list of values for the key if it is in the headers, otherwise set the header to the list of values given by default and return that.
Method to​_wsgi​_list Convert the headers into a list suitable for WSGI.
Method update Replace headers in this object with items from another headers object and keyword arguments.
Method values Undocumented
Method ​_validate​_value Undocumented
Instance Variable ​_list Undocumented
def __eq__(self, other):
def __getitem__(self, key, _get_mode=False):
def __init__(self, environ):
def __iter__(self):
Yield (key, value) tuples.
def __len__(self):
def copy(self):

Undocumented

__hash__ =
environ =

Undocumented