Request Execution Lifecycle
A high-level outline of the request flow. Features such as caching, retries, and auth refresh only run when configured.
Pipeline Flow
Build request configuration
Combines client defaults with request options and resolves URL, path parameters, query parameters, and headers.
Apply request policies
Configured interceptors, auth, circuit breaker, caching, deduplication, and concurrency limiting participate as applicable.
Dispatch through Fetch
Serializes supported request bodies and calls fetchImpl or globalThis.fetch with timeout and abort handling.
Handle response and retry
Eligible HTTP or network failures may be retried. Configured auth can refresh and retry eligible responses.
Parse and validate
Parses the configured response type and validates data when a schema is provided.
Return result
Updates an enabled cache, runs response interceptors, and returns an HttpResponse, unwrapped data, or a safe tuple.