Class: HttpRequest

@bldr/http-request.HttpRequest

new module:@bldr/http-request.HttpRequest (servers, urlFillIn)

Name Type Description
servers object

A object represention multiple servers.

urlFillIn string

A string which gets filled between the base URL and the last part of the URL.

Members

axiosInstances_ array

An array of Axios instances

Methods

createAxiosInstances_ () asyncprivate

request (config) async

Wrapper around axios.request. See axios.request


{
  method: 'get',
  url: 'data/entry'
}
Name Type Description
config object

resetAxiosInstances_ () private

Reset the Axios instance to get a new instance. To check different URL.