Skip to main content
Use a shared HTTP client abstraction that handles auth and retries consistently.

Baseline HTTP requirements

  • Base URL per environment.
  • Bearer token injection on authenticated calls.
  • Structured parsing for non-2xx responses.
  • Timeouts and idempotent retry policy.

JavaScript example

Next