Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AxiosHTTP

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private axiosImpl

axiosImpl: AxiosStatic

the Axios implementation we'll use for making ReST calls

Private axiosObj

axiosObj: AxiosInstance

the Axios instance we'll use for making ReST calls

options

the authorization config associated with this ReST client

timeout

timeout: number = 10000

how long to wait before giving up on a given request

Accessors

server

  • the server associated with this HTTP implementation

    Returns OnmsServer

  • the server associated with this HTTP implementation

    Parameters

    Returns void

Methods

get

Private getConfig

  • internal method to turn OnmsHTTPOptions into an {@link AxiosRequestConfig} object.

    Parameters

    Returns AxiosRequestConfig

Private getImpl

  • internal method for getting/constructing an Axios object on-demand, based on the current server config

    Parameters

    Returns AxiosInstance

Protected getOptions

  • combine all options from the given options, the current server, and the default options

    Parameters

    Returns any

Protected getServer

Protected onSetServer

  • onSetServer(): void
  • Clear the configured {@link AxiosInstance} so we create a new one when the server changes.

    Returns void

put

Protected transformJSON

  • transformJSON(data: any): any
  • a convenience method for implementers to use to turn JSON into a javascript object

    Parameters

    • data: any

    Returns any

Protected transformXML

  • transformXML(data: any): any
  • a convenience method for implementers to use to turn XML into a javascript object

    Parameters

    • data: any

    Returns any

Generated using TypeDoc