Repository navigation
httpclient v0.2.0
Every request now takes the caller's context as its first argument. Replace client.GetCtx[Order](ctx, path) with client.Get[Order](ctx, path) and add a context to calls that previously used one implicitly.
- Retry delays honor cancellation. Eligible 429 and 503 replies can extend the delay with
Retry-After, within the caller's deadline. Client.Sendreturns the HTTP status, headers, and a streaming body.httpclienttest.Transportserves response sequences and records requests without a running server.
Requires Go 1.27. See the documentation and migration guide.