One stage of the request pipeline (architecture.md §5). Built-ins, in order: auth → idempotency → telemetry → retry → error-mapping; custom middlewares from ClientConfig.middleware run after these.
ClientConfig.middleware
Readonly
Stable identifier, used in logs/diagnostics.
Return a handler that wraps next — call it (or not), transform req/response.
next
One stage of the request pipeline (architecture.md §5). Built-ins, in order: auth → idempotency → telemetry → retry → error-mapping; custom middlewares from
ClientConfig.middlewarerun after these.