v0.7.0 — BodyMode enum
Immutable
release. Only release title and notes can be modified.
Breaking
-
Request.WantBody bool+Request.StreamBody bool→ singleRequest.BodyMode
enum:BodyDiscard(zero value, drop),BodyBuffer(intoResponse.Body),
BodyStream(Response.BodyReader). Removes the invalidWantBody+StreamBody
state and the precedence rule — the Request API is now consistently enum-based
alongsideIdempotencyMode(v0.6.0).Migration:
WantBody: true→BodyMode: client.BodyBuffer;
StreamBody: true→BodyMode: client.BodyStream; unset = discard. The
GET/POST/NewRequesthelpers setBodyBuffer, so sugar-based code is
unaffected.
Docs
- Retired
docs/USAGE.mdintodocs/CLIENT_GUIDE.md(one canonical guide).
Full notes in CHANGELOG.md. Shipped through strict
semantic-equivalence review with adversarial refutation + green CI.