Library referenceClasses
KrunkerClient
the http layer under every tier: one base url, one rate limit tracker, typed errors, one retry on a 5xx or a network error
Constructors
Constructor
new KrunkerClient(options): KrunkerClient;Parameters
| Parameter | Type |
|---|---|
options | ClientOptions |
Returns
KrunkerClient
Properties
| Property | Modifier | Type |
|---|---|---|
rateLimit | readonly | RateLimitTracker |
Accessors
configured
Get Signature
get configured(): boolean;Returns
boolean
Methods
get()
get<T>(path, options): Promise<T>;Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
path | string |
options | RequestOptions |
Returns
Promise<T>
url()
url(path, query?): string;Parameters
| Parameter | Type |
|---|---|
path | string |
query? | Record<string, QueryValue> |
Returns
string