Abstract
Constructor.
Service config.
Service logger.
Protected
_configAbstract
_endpointSpecific webservice endpoint.
An absolute URL, which means a path with leading slash ('/') relative to the IServiceConfig.controllerUrl (ProCon.IP base address).
Abstract
_methodHTTP request method.
Must be one of the valid HTTP request methods like GET, POST, etc.
See axios/Method
type:
export type Method =
| 'get' | 'GET'
| 'delete' | 'DELETE'
| 'head' | 'HEAD'
| 'options' | 'OPTIONS'
| 'post' | 'POST'
| 'put' | 'PUT'
| 'patch' | 'PATCH'
| 'purge' | 'PURGE'
| 'link' | 'LINK'
| 'unlink' | 'UNLINK'
Protected
_requestCustom HTTP headers.
Custom headers can be defined in form of a key value pair.
this._requestHeaders["Cache-Control"] = "no-cache";
Protected
logLogger which will be used for all logging events.
Protected
axiosGet an axios/AxiosRequestConfig
object.
Get the base url.
The IServiceConfig.controllerUrl string.
Get the webservice url (joined base url and endpoint).
URL string (joined base url and endpoint).
Abstract service implementing the common base setup for the axios requests of the specific service implementations.