Components Interactions Examples Tutorials API FAQ
Options
Menu

Interface DsvXhr

Type parameters

  • T

Hierarchy

Index

Methods

abort

get

  • get(callback?: function): DsvXhr<T>
  • Parameters

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

          • err: any
          • data: T

          Returns void

    Returns DsvXhr<T>

header

  • header(name: string): string
  • header(name: string, value: string): DsvXhr<T>

mimeType

  • mimeType(): string
  • mimeType(type: string): DsvXhr<T>

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): DsvXhr<T>
  • on(type: "progress", listener: function): DsvXhr<T>
  • on(type: "load", listener: function): DsvXhr<T>
  • on(type: "error", listener: function): DsvXhr<T>
  • on(type: string, listener: function): DsvXhr<T>
  • 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: T): void
      • Parameters

        • response: T

        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 DsvXhr<T>

  • Parameters

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

          • request: XMLHttpRequest

          Returns void

    Returns DsvXhr<T>

  • Parameters

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

          • response: T

          Returns void

    Returns DsvXhr<T>

  • Parameters

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

          • err: any

          Returns void

    Returns DsvXhr<T>

  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns DsvXhr<T>

post

  • post(data?: any, callback?: function): DsvXhr<T>
  • post(callback: function): DsvXhr<T>
  • Parameters

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

          • err: any
          • data: T

          Returns void

    Returns DsvXhr<T>

  • Parameters

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

          • err: any
          • data: T

          Returns void

    Returns DsvXhr<T>

response

  • response(): function
  • response(value: function): DsvXhr<T>

responseType

  • responseType(): string
  • responseType(type: string): DsvXhr<T>

row

  • row(): function
  • row<U>(accessor: function): DsvXhr<U>
  • Returns function

      • (row: object): T
      • Parameters

        • row: object
          • [key: string]: string

        Returns T

  • Type parameters

    • U

    Parameters

    • accessor: function
        • (row: object): U
        • Parameters

          • row: object
            • [key: string]: string

          Returns U

    Returns DsvXhr<U>

send

  • send(method: string, data?: any, callback?: function): DsvXhr<T>
  • send(method: string, callback: function): DsvXhr<T>
  • Parameters

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

          • err: any
          • data: T

          Returns void

    Returns DsvXhr<T>

  • Parameters

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

          • err: any
          • data: T

          Returns void

    Returns DsvXhr<T>

Generated using TypeDoc