Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CordovaAdvancedHTTP

Implementation of the IOnmsHTTP interface using the Cordova Advanced HTTP plugin: https://github.com/silkimen/cordova-plugin-advanced-http

implements

IOnmsHTTP

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private Optional http

http: HTTP
inheritdoc

isValid

isValid: boolean = false

Whether this plugin is valid and can be initialized.

Implementations can use this to signal whether any optional dependencies or other conditions have been met for the plugin to work.

Accessors

options

server

timeout

  • get timeout(): number
  • set timeout(t: number): void

Methods

Protected ensureInitialized

get

Private getConfig

Protected getData

  • getData(response: any): any

Protected getOptions

Protected getServer

head

httpDelete

Protected onBasicAuth

  • onBasicAuth(username: string, password: string, newHash: string, oldHash: string): void

Protected onSetServer

  • onSetServer(): void

post

put

setServerTrustMode

  • setServerTrustMode(mode: undefined | "default" | "legacy" | "nocheck" | "pinned", http?: HTTP): Promise<void>
  • Set the behavior when making SSL connections to servers.

    Parameters

    • mode: undefined | "default" | "legacy" | "nocheck" | "pinned"

      the server trust mode to use

    • Optional http: HTTP

      an optional HTTP implementation to update rather than the one associated with this impl

    Returns Promise<void>

setTimeout

  • setTimeout(timeout?: number): void

Protected transformJSON

  • transformJSON(data: any): any

Protected transformXML

  • transformXML(data: any): any

Protected useBasicAuth

  • useBasicAuth(username?: string, password?: string): void
  • Set or update the basic auth credentials to be used in making connections.

    Parameters

    • Optional username: string

      The username to connect with

    • Optional password: string

      The password to connect with

    Returns void

Static isValid

  • isValid(): any

Generated using TypeDoc