Construct an AxiosHTTP instance.
The server to connect to.
The Axios implementation class to use.
The default timeout for ReST connections.
The Axios instance we'll use for making ReST calls. This will be reinitialized whenever the server configuration changes.
The default set of HTTP options associated with this ReST client.
The default amount of time to wait before giving up on a request.
The server associated with this HTTP implementation.
The server associated with this HTTP implementation.
Make an HTTP GET call using axios.request({method:'get'})
.
Get the union of OnmsHTTPOptions based on the passed options, defaults, and options in the OnmsServer associated with this request. Order of precedence is passed options -> server options -> default options.
Get the OnmsServer object that should be used for making requests. Favors the one passed in the OnmsHTTPOptions, otherwise it falls back to the default server associated with the HTTP implementation.
Make an HTTP DELETE call using axios.request({method:'delete'})
.
Clear the current [[AxiosInstance]] so it is recreated on next request with the new server configuration.
Make an HTTP POST call using axios.request({method:'post'})
.
Make an HTTP PUT call using axios.request({method:'put'})
.
A convenience method for implementers to use to turn JSON into a javascript object. Use this to process a JSON response before returning it in an OnmsResult object.
A convenience method for implementers to use to turn XML into a javascript object. Use this to process an XML response before returning it in an OnmsResult object.
Generated using TypeDoc
Implementation of the IOnmsHTTP interface using Axios: https://github.com/mzabriskie/axios
IOnmsHTTP