Skip to content

httpclient v0.2.0

Choose a tag to compare

@cmilesio cmilesio released this 03 Dec 06:03
89e6245

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.Send returns the HTTP status, headers, and a streaming body.
  • httpclienttest.Transport serves response sequences and records requests without a running server.

Requires Go 1.27. See the documentation and migration guide.