MCPcopy
hub / github.com/pallets/werkzeug / header_property

Class header_property

src/werkzeug/utils.py:143–147  ·  view source on GitHub ↗

Like `environ_property` but for headers.

Source from the content-addressed store, hash-verified

141
142
143class header_property(_DictAccessorProperty[_TAccessorValue]):
144 """Like `environ_property` but for headers."""
145
146 def lookup(self, obj: Request | Response) -> Headers: # type: ignore[override]
147 return obj.headers
148
149
150# https://cgit.freedesktop.org/xdg/shared-mime-info/tree/freedesktop.org.xml.in

Callers 2

ResponseClass · 0.85
RequestClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected