Basic Request Patterns
GET
string|array request bodies are supported. Arrays are JSON-encoded. If encoding fails (for example because a value is not serializable), HttpRequestBody throws InvalidArgumentException.
POST JSON
Request Mutation Is Immutable
with*() call returns a new request.
Driver + Config via Builder
Error Strategy
failOnError: false(default): HTTP 4xx/5xx are returned as regular responsesfailOnError: true: driver throws typed HTTP exceptions for 4xx/5xx
Migration note: built-in preset defaults are aligned tofailOnError: false. If you depended on throwing behavior by default, setfailOnError: trueexplicitly.