You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Confusing types falcon.typing.Headers vs req.headers #2702
It does make sense that the returned req.headers are marked as read-only. Should we just update the docstring for typing then? Where should falcon.typing.Headers be used?
Activity
vytas7 commentedon Jul 22, 2026
(See also #2648.)
CaselIT commentedon Jul 22, 2026
It's likely that it's typed as mapping on request to indicate that's read-only, since there is no use case where one would want to edit them.
The other type is likely for response.
That said it's fine if we want to unify them
vytas7 commentedon Jul 22, 2026
falcon.typing.Headers-- saysIt does make sense that the returned
req.headersare marked as read-only. Should we just update the docstring for typing then? Where shouldfalcon.typing.Headersbe used?CaselIT commentedon Jul 22, 2026
Headers is used in the response. let's be specific in the docstring