Skip to content

v2.11.0

Latest

Choose a tag to compare

@Kludex Kludex released this 18 Aug 08:03
· 1 commit to main since this release
2b13fa9

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-Encoding headers now take precedence over body-derived Content-Length headers (#1137).
  • Deprecated status code aliases are available again (#1135).
  • Multipart part headers are validated before serialization (#1142).

httpx2

Added

  • Add the public Origin value object and URL.origin property by @Kludex in #1134

Changed

  • Require Brotli 1.2.0 or later for the brotli extra by @Kludex in #1141

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-Encoding headers 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