Skip to content

v0.7.0 — BodyMode enum

Choose a tag to compare

@lodgvideon lodgvideon released this 06 Jul 22:27
Immutable release. Only release title and notes can be modified.
a7824d9

Breaking

  • Request.WantBody bool + Request.StreamBody bool → single Request.BodyMode
    enum: BodyDiscard (zero value, drop), BodyBuffer (into Response.Body),
    BodyStream (Response.BodyReader). Removes the invalid WantBody+StreamBody
    state and the precedence rule — the Request API is now consistently enum-based
    alongside IdempotencyMode (v0.6.0).

    Migration: WantBody: trueBodyMode: client.BodyBuffer;
    StreamBody: trueBodyMode: client.BodyStream; unset = discard. The
    GET/POST/NewRequest helpers set BodyBuffer, so sugar-based code is
    unaffected.

Docs

  • Retired docs/USAGE.md into docs/CLIENT_GUIDE.md (one canonical guide).

Full notes in CHANGELOG.md. Shipped through strict
semantic-equivalence review with adversarial refutation + green CI.