Skip to content

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

ParameterType
configMNotifyConfig

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

ParameterTypeDefault value
configRequestConfigundefined
retryCountnumber0

Returns

Promise<Result<T, MNotifyError>>