class documentation
class EnvironHeaders(ImmutableHeadersMixin, Headers): (source)
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 :exc:`~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 |
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
(via ImmutableHeadersMixin
):
Method | __contains__ |
Check if a key is present. |
Method | __copy__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Returns formatted headers suitable for HTTP transmission. |
Method | clear |
Clears all headers. |
Method | get |
Return the default value if the requested data doesn't exist. If `type` is provided and is a callable it should convert the value, return it or raise a :exc:`ValueError` if that is not possible. In this case the function will return the default as if the value was not found:... |
Method | get |
Return a list of all the values for the named field. |
Method | getlist |
Return the list of items for a given key. If that key is not in the :class:`Headers`, the return value will be an empty list. Just like :meth:`get`, :meth:`getlist` accepts a `type` parameter. All items will be converted with the callable defined there. |
Method | items |
Undocumented |
Method | keys |
Undocumented |
Method | to |
Convert the headers into a list suitable for WSGI. |
Method | values |
Undocumented |
Method | _validate |
Undocumented |
Instance Variable | _list |
Undocumented |