Class to build and execute HTTP requests

Example

const response: HttpResponse<OAuthResponse> = await new HttpRequestBuilder({
method: 'GET',
baseURL: `https://api.lemoncloud.io/v1/oauth`,
})
.setHeaders({ Cookie: this.cookie })
.setParams({ page: 0 })
.execute();

Constructors

Properties

axiosInstance: AxiosInstance
config: AxiosRequestConfig<any> = ...

Methods