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
Commit b877a27
Browse filesBrowse the repository at this point in the historyBrowse files
Adds Request.__post_init__ that validates:
- url is a non-empty str
- headers, params, cookies, extensions are each a Mapping
- header and cookie names/values are non-empty str, no CR or LF
with_* methods inherit validation via dataclasses.replace; no
per-method code needed. Header validation is minimal per spec
(reject CR/LF, non-str, empty); full RFC 9110 token validation is
out of scope.
Closes deferred-work entries: "Header name/value validation",
"URL validation" (Request.url part), "with_query(None) handling".
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments