API
Classes
Interfaces
- BaseConfig
- ChaosConfig
- ChaosDownConfig
- ChaosSlowConfig
- EventListenerFunction
- HedgeConfig
- RetryConfig
- TimeoutConfig
Type Aliases
Backoff
Ƭ Backoff: "constant"
| "exponential"
Defined in
EventName
Ƭ EventName: "timeout"
| "retry"
| "hedge"
| "chaos:down"
| "chaos:slow"
Defined in
Jitter
Ƭ Jitter: "none"
| "full"
| "equal"
| "decorrelated"
Defined in
ReliableFetchFunction
Ƭ ReliableFetchFunction: (input
: ReliableRequestInfo
, init?
: ReliableRequestInit
) => Promise
<Response
>
Type declaration
▸ (input
, init?
): Promise
<Response
>
Parameters
Name | Type |
---|---|
input | ReliableRequestInfo |
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
Name | Type |
---|---|
url | ReliableRequestInfo |
init? | ReliableRequestInit |
Returns
Defined in
fetchChaos
▸ fetchChaos(input
, init?
): Promise
<Response
>
Parameters
Name | Type |
---|---|
input | ReliableRequestInfo |
init? | ReliableRequestInit |
Returns
Promise
<Response
>
Defined in
types/ReliableFetchFunction.ts:4
fetchHedge
▸ fetchHedge(input
, init?
): Promise
<Response
>
Parameters
Name | Type |
---|---|
input | ReliableRequestInfo |
init? | ReliableRequestInit |
Returns
Promise
<Response
>
Defined in
types/ReliableFetchFunction.ts:4
fetchRetry
▸ fetchRetry(input
, init?
): Promise
<Response
>
Parameters
Name | Type |
---|---|
input | ReliableRequestInfo |
init? | ReliableRequestInit |
Returns
Promise
<Response
>
Defined in
types/ReliableFetchFunction.ts:4
fetchTimeout
▸ fetchTimeout(input
, init?
): Promise
<Response
>
Parameters
Name | Type |
---|---|
input | ReliableRequestInfo |
init? | ReliableRequestInit |
Returns
Promise
<Response
>