v0.6.0 — ergonomic overhaul
Immutable
release. Only release title and notes can be modified.
Major ergonomics + receive-path performance release. Full notes in
CHANGELOG.md.
Highlights
Ergonomics
- Opt-in sugar:
client.H+client.HeaderField,GET/POST/NewRequest
(capture body by default),WithHeaders,Response.Header/CopyBody/Clone,
StreamEvent.DataCopy, and auto-closingClient.Stream. - Focused constructors
NewSingleConnClient/NewPoolClient/
NewManagedClient+ functionalWith*options (valid combos by construction). - Discoverable
Client.Retryer; status-class metrics (Responses2xx/
ResponsesNon2xx);EventNone. - Debug-gated leak detector (
-tags poseidondebug, zero prod cost). - Full
docs/CLIENT_GUIDE.md+ 24 compile-tested godoc examples +
examples/loadgen.
Breaking
Request.Idempotent *bool→Request.Idempotency IdempotencyMode
(IdempotencyAuto/ForceIdempotent/ForceNotIdempotent).
Performance
- Zero-allocation receive hot path (pooled per-DATA-frame buffer).
- Buffered transport reader (fewer read syscalls, esp. h2c).
Every change shipped through strict multi-agent review (adversarial refutation)
- green CI, with the zero-allocation hot path preserved throughout.