Available on crate feature
async only.Expand description
DryRun – preview the HTTP request that would be sent, without firing it.
Renders the same body, URL, and headers (auth + version + user-agent +
anthropic-beta) the live client would produce. Useful for:
- inspecting the rendered JSON body during development,
- reproducing a request as a curl command in support tickets,
- asserting on the wire-shape of a request in tests.
Obtain via Messages::dry_run and
related methods.
Structs§
- DryRun
- A rendered HTTP request that has not been sent.