Skip to main content

API

Classes

Interfaces

Type Aliases

Backoff

Ƭ Backoff: "constant" | "exponential"

Defined in

types/Backoff.ts:1


EventName

Ƭ EventName: "timeout" | "retry" | "hedge" | "chaos:down" | "chaos:slow"

Defined in

types/EventName.ts:1


Jitter

Ƭ Jitter: "none" | "full" | "equal" | "decorrelated"

Defined in

types/Jitter.ts:1


ReliableFetchFunction

Ƭ ReliableFetchFunction: (input: ReliableRequestInfo, init?: ReliableRequestInit) => Promise<Response>

Type declaration

▸ (input, init?): Promise<Response>

Parameters
NameType
inputReliableRequestInfo
init?ReliableRequestInit
Returns

Promise<Response>

Defined in

types/ReliableFetchFunction.ts:4


ReliableRequestInfo

Ƭ ReliableRequestInfo: RequestInfo | URL

Defined in

types/ReliableRequestInfo.ts:1


ReliableRequestInit

Ƭ ReliableRequestInit: RequestInit & Partial<BaseConfig> & Partial<ChaosConfig> & Partial<HedgeConfig> & Partial<RetryConfig> & Partial<TimeoutConfig>

Defined in

types/ReliableRequestInit.ts:9

Functions

default

default(url, init?): ReliableFetch

Parameters

NameType
urlReliableRequestInfo
init?ReliableRequestInit

Returns

ReliableFetch

Defined in

index.ts:95


fetchChaos

fetchChaos(input, init?): Promise<Response>

Parameters

NameType
inputReliableRequestInfo
init?ReliableRequestInit

Returns

Promise<Response>

Defined in

types/ReliableFetchFunction.ts:4


fetchHedge

fetchHedge(input, init?): Promise<Response>

Parameters

NameType
inputReliableRequestInfo
init?ReliableRequestInit

Returns

Promise<Response>

Defined in

types/ReliableFetchFunction.ts:4


fetchRetry

fetchRetry(input, init?): Promise<Response>

Parameters

NameType
inputReliableRequestInfo
init?ReliableRequestInit

Returns

Promise<Response>

Defined in

types/ReliableFetchFunction.ts:4


fetchTimeout

fetchTimeout(input, init?): Promise<Response>

Parameters

NameType
inputReliableRequestInfo
init?ReliableRequestInit

Returns

Promise<Response>

Defined in

types/ReliableFetchFunction.ts:4