Components Interactions Examples Tutorials API FAQ
Options
Menu

Interface Xhr

Hierarchy

Index

Methods

abort

get

  • get(callback?: function): Xhr
  • Parameters

    • Optional callback: function
        • (err: any, data: any): void
        • Parameters

          • err: any
          • data: any

          Returns void

    Returns Xhr

header

  • header(name: string): string
  • header(name: string, value: string): Xhr

mimeType

  • mimeType(): string
  • mimeType(type: string): Xhr

on

  • on(type: "beforesend"): function
  • on(type: "progress"): function
  • on(type: "load"): function
  • on(type: "error"): function
  • on(type: string): function
  • on(type: "beforesend", listener: function): Xhr
  • on(type: "progress", listener: function): Xhr
  • on(type: "load", listener: function): Xhr
  • on(type: "error", listener: function): Xhr
  • on(type: string, listener: function): Xhr
  • Parameters

    • type: "beforesend"

    Returns function

      • (request: XMLHttpRequest): void
      • Parameters

        • request: XMLHttpRequest

        Returns void

  • Parameters

    • type: "progress"

    Returns function

      • (request: XMLHttpRequest): void
      • Parameters

        • request: XMLHttpRequest

        Returns void

  • Parameters

    • type: "load"

    Returns function

      • (response: any): void
      • Parameters

        • response: any

        Returns void

  • Parameters

    • type: "error"

    Returns function

      • (err: any): void
      • Parameters

        • err: any

        Returns void

  • Parameters

    • type: string

    Returns function

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

        • Rest ...args: any[]

        Returns void

  • Parameters

    • type: "beforesend"
    • listener: function
        • (request: XMLHttpRequest): void
        • Parameters

          • request: XMLHttpRequest

          Returns void

    Returns Xhr

  • Parameters

    • type: "progress"
    • listener: function
        • (request: XMLHttpRequest): void
        • Parameters

          • request: XMLHttpRequest

          Returns void

    Returns Xhr

  • Parameters

    • type: "load"
    • listener: function
        • (response: any): void
        • Parameters

          • response: any

          Returns void

    Returns Xhr

  • Parameters

    • type: "error"
    • listener: function
        • (err: any): void
        • Parameters

          • err: any

          Returns void

    Returns Xhr

  • Parameters

    • type: string
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns Xhr

post

  • post(data?: any, callback?: function): Xhr
  • post(callback: function): Xhr
  • Parameters

    • Optional data: any
    • Optional callback: function
        • (err: any, data: any): void
        • Parameters

          • err: any
          • data: any

          Returns void

    Returns Xhr

  • Parameters

    • callback: function
        • (err: any, data: any): void
        • Parameters

          • err: any
          • data: any

          Returns void

    Returns Xhr

response

  • response(): function
  • response(value: function): Xhr
  • Returns function

      • (request: XMLHttpRequest): any
      • Parameters

        • request: XMLHttpRequest

        Returns any

  • Parameters

    • value: function
        • (request: XMLHttpRequest): any
        • Parameters

          • request: XMLHttpRequest

          Returns any

    Returns Xhr

responseType

  • responseType(): string
  • responseType(type: string): Xhr

send

  • send(method: string, data?: any, callback?: function): Xhr
  • send(method: string, callback: function): Xhr
  • Parameters

    • method: string
    • Optional data: any
    • Optional callback: function
        • (err: any, data: any): void
        • Parameters

          • err: any
          • data: any

          Returns void

    Returns Xhr

  • Parameters

    • method: string
    • callback: function
        • (err: any, data: any): void
        • Parameters

          • err: any
          • data: any

          Returns void

    Returns Xhr

Generated using TypeDoc