OpenNMS.js - v2.6.2-SNAPSHOT
    Preparing search index...

    Class AxiosHTTP

    Implementation of the [[IOnmsHTTP]] interface using Axios: https://github.com/mzabriskie/axios

    IOnmsHTTP

    Hierarchy (View Summary)

    Index

    Constructors

    • Construct an AxiosHTTP instance.

      Parameters

      • Optionalserver: OnmsServer

        The server to connect to.

      • OptionalaxiosImpl: AxiosStatic

        The Axios implementation class to use.

      • timeout: number = 10000

        The default timeout for ReST connections.

      Returns AxiosHTTP

    Accessors

    Methods

    post

    • 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.

      Parameters

      • data: any

      Returns any

    • 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.

      Parameters

      • data: any

      Returns any