Hierarchy

  • Http

Index

Properties

Static withCredentials

withCredentials: boolean = false

Methods

Static getFile

  • getFile(filePath: string, binary?: boolean, contentType?: string, headers?: object[], disableCache?: boolean, withCredentials?: boolean): any
  • Parameters

    • filePath: string
    • Default value binary: boolean = false
    • Default value contentType: string = ""
    • Default value headers: object[] = null
    • Default value disableCache: boolean = true
    • Default value withCredentials: boolean = undefined

    Returns any

Static getFileAsync

  • getFileAsync(callback: Function, filePath: string, binary?: boolean, contentType?: string, disableCache?: boolean, withCredentials?: boolean): void
  • Parameters

    • callback: Function
    • filePath: string
    • Default value binary: boolean = false
    • Default value contentType: string = ""
    • Default value disableCache: boolean = true
    • Default value withCredentials: boolean = undefined

    Returns void

Static getUrlParameters

  • getUrlParameters(): object[]
  • Returns object[]

Static send

  • send(method: string, url: string, body?: string, headers?: object[], disableCache?: boolean, withCredentials?: boolean): object
  • Parameters

    • method: string
    • url: string
    • Default value body: string = ""
    • Default value headers: object[] = null
    • Default value disableCache: boolean = true
    • Default value withCredentials: boolean = undefined

    Returns object

    • responseText: string
    • status: number
    • statusText: string

Static sendAsync

  • sendAsync(method: string, url: string, body?: string, headers?: object[], timeout?: number, disableCache?: boolean, withCredentials?: boolean): StiPromise<object>
  • Parameters

    • method: string
    • url: string
    • Default value body: string = ""
    • Default value headers: object[] = null
    • Default value timeout: number = 0
    • Default value disableCache: boolean = true
    • Default value withCredentials: boolean = undefined

    Returns StiPromise<object>

Generated using TypeDoc