Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SuperAgentHTTP

Hierarchy

Implements

Index

Constructors

constructor

Properties

options

the authorization config associated with this ReST client

Private saImpl

saImpl: any

the SuperAgent implementation, override if using nodejs instead of the browser

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

  • make an HTTP get call -- this should be overridden by the implementation

    Parameters

    Returns Promise<any>

Private getImpl

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

    Parameters

    Returns any

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
  • useful for performing an action (like clearing caches) when the server is set

    Returns void

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