Highlights
🌐 Public origin API
httpx2 now includes an immutable and hashable Origin value object, available through URL.origin. It provides normalized scheme, host, and effective port comparisons without including URL paths, queries, fragments, or credentials (#1134).
🛠️ Request compatibility and validation
- Explicit
Transfer-Encodingheaders now take precedence over body-derivedContent-Lengthheaders (#1137). - Deprecated status code aliases are available again (#1135).
- Multipart part headers are validated before serialization (#1142).
httpx2
Added
Changed
Fixed
- Restore deprecated status code aliases by @Kludex in #1135
- Extract HTTP/2 release notes from changelog headings correctly by @Kludex in #1136
- Respect explicit
Transfer-Encodingheaders and expose buffered request body lengths to WSGI applications by @Kludex in #1137 - Validate multipart part header names and values before serialization by @Kludex in #1142
httpcore2
Changed
- Cache sniffio availability instead of importing it on every synchronization call by @mbeijen in #1132
Full Changelog: v2.10.0...v2.11.0