This repository was archived by the owner on Dec 3, 2026. It is now read-only.
Repository navigation
HTTPX v2.1.0
HTTPX v2.1.0 adds generic client methods, fixes decoding for named raw response types, and updates HTTP compression and network security dependencies.
Generic client methods
Call typed request helpers directly on a client. Existing package functions remain available.
client := httpx.New()
user, err := client.Get[User]("https://api.example.com/users/1")The method helpers cover all supported HTTP verbs, including their context variants. See #10.
Fixes
- Named strings and byte slices now decode without panicking through package helpers, client methods, and
Do. Thanks to @bensynapse for #16. - Updated
klauspost/compressto v1.20.2 andgolang.org/x/netto v0.61.0, along with crypto, sys, and text updates. See #20. - Updated the underlying
req/v3client to v3.61.0 and included the dependency security updates from #11.
Go version
Requires Go 1.27 or newer, increased from Go 1.24.4 in v2.0.1 to support generic client methods. Upgrade your local and CI toolchains before updating. Consumers remaining on older Go versions should stay on v2.0.1.
Upgrade
go get github.com/goforj/httpx/v2@v2.1.0Full changes: v2.0.1...v2.1.0