Hierarchy

  • Xhr

Implements

Properties

disableCertificateVerification?: boolean

Disable certificate verification across all components that use HTTP. It can be used to bypass self-signed certificate. This property must be assigned when the application is started and cannot be changed dynamically.

Property

= false]

Android

Ios

Static

Since

5.1.1

ios: { sslPinning?: { host: string; certificates: string[]; validateCertificateChain?: boolean; validateHost?: boolean }[] }

Type declaration

  • Optional sslPinning?: { host: string; certificates: string[]; validateCertificateChain?: boolean; validateHost?: boolean }[]
readyState: number
response: null | string | object
responseText: string
responseURL?: string
status: number
statusText: string
timeout: number
onabort: ((...args: any[]) => void)

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

onerror: ((...args: any[]) => void)

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

onload: ((...args: any[]) => void)

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

onloadend: ((...args: any[]) => void)

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

onloadstart: ((...args: any[]) => void)

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

onprogress: ((...args: any[]) => void)

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

onreadystatechange: ((...args: any[]) => void)

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

ontimeout: ((...args: any[]) => void)

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

Constructors

  • Returns Xhr

Methods

  • Creates an event emitter instance to listen for the actions

    Returns

    Call the function to remove the event

    Parameters

    • eventName: "abort" | "error" | "load" | "loadend" | "loadstart" | "progress" | "readystatechange" | "timeout"
    • callback: EventListenerCallback

      Gets as any arguments as it needs

    Returns (() => void)

      • (): void
      • Returns void

  • Creates an event emitter instance to listen for the actions

    Returns

    Call the function to remove the event

    Parameters

    • eventName: "abort" | "error" | "load" | "loadend" | "loadstart" | "progress" | "readystatechange" | "timeout"
    • callback: EventListenerCallback

      Gets as any arguments as it needs

    Returns (() => void)

      • (): void
      • Returns void

  • Removes the specified event and invokes the callback after it is removed

    Parameters

    • eventName: "abort" | "error" | "load" | "loadend" | "loadstart" | "progress" | "readystatechange" | "timeout"
    • Optional callback: EventListenerCallback

    Returns void

  • Triggers the event manually.

    Parameters

    • event: "abort" | "error" | "load" | "loadend" | "loadstart" | "progress" | "readystatechange" | "timeout"
    • Rest ...args: any[]

      Arguments that needs to be passed down

    Returns void

  • Adds the listener function to the beginning of the listeners array for the event named eventName. No checks are made to see if the listener has already been added. Multiple calls passing the same combination of eventName and listener will result in the listener being added, and called, multiple times.

    Parameters

    • eventName: "abort" | "error" | "load" | "loadend" | "loadstart" | "progress" | "readystatechange" | "timeout"
    • callback: EventListenerCallback

    Returns void

  • Adds a one-time listener function for the event named eventName to the beginning of the listeners array. The next time eventName is triggered, this listener is removed, and then invoked.

    Parameters

    • eventName: "abort" | "error" | "load" | "loadend" | "loadstart" | "progress" | "readystatechange" | "timeout"
    • callback: EventListenerCallback

    Returns void

  • Parameters

    • eventName: string
    • handler: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns void

  • Parameters

    • eventName: string
    • toDetach: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns void

Generated using TypeDoc