Web Gateway Modules

wsgiref.headers

Provides Headers, a case-insensitive mapping-like wrapper around WSGI response header pairs. Repeated names can coexist and get_all returns their values. Assignment replaces all values with that name. This is a header manipulation helper, not a full HTTP security validator.

Formal Syntax & Structure

python syntaxpython
import wsgiref.headers

Return Value

module

Module namespace available through import; import is a statement, not a value-returning expression.

Working Example

Example Snippetpython
from wsgiref.headers import Headersh = Headers([( "X-Tag", "a"), ("X-Tag", "b")])print(h.get_all("x-tag"))
Python Reference