Variable TRANSPORT_OPTION_KEYSConst
TRANSPORT_OPTION_KEYS: readonly [
"timeout",
"signal",
"exposeRawAxiosError",
"retry",
"paceWithRateLimit",
"rateLimitFloor",
"circuitBreaker",
"retryBudget",
"maxSockets",
"maxFreeSockets",
"onError",
"onRetry",
"onRequestStart",
"onResponse",
"onPace",
"onHookError",
"diagnostics",
"onCircuitOpen",
"onCircuitClose",
"ignorePaceDeadline",
"allowPartialData",
"responseCache",
"bypassResponseCache",
] = ...
Every key of RequestOptions in one array. The credential resolver uses it to allowlist transport fields and reject mistyped credential keys (for example
accesstokeninstead ofaccessToken) at client construction instead of silently ignoring them.The
satisfiesclause and the exhaustiveness assertion below bind this list to the interface: adding a field toRequestOptionswithout adding it here failstsc, and listing a key the interface does not have fails too. The array cannot drift from the type it enumerates.