Class: HttpClient
Defined in: http.ts:26
Low-level HTTP client for communicating with the mNotify API.
Constructors
Constructor
ts
new HttpClient(config): HttpClient;Defined in: http.ts:32
Parameters
| Parameter | Type |
|---|---|
config | MNotifyConfig |
Returns
HttpClient
Methods
request()
ts
request<T>(config, retryCount?): Promise<Result<T, MNotifyError>>;Defined in: http.ts:40
Performs an HTTP request, returning a Result. Retries on 429 rate-limit responses.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Default value |
|---|---|---|
config | RequestConfig | undefined |
retryCount | number | 0 |
Returns
Promise<Result<T, MNotifyError>>