Hierarchy

  • Http

Index

Properties

Static disableCache

disableCache: boolean = false

Static withCredentials

withCredentials: boolean = false

Methods

Static getFile

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

    • filePath: string
    • Default value binary: boolean = false
    • contentType: string
    • headers: Header[]
    • Default value disableCache: boolean = undefined
    • Default value withCredentials: boolean = undefined
    • Default value allowException: boolean = false

    Returns any

Static getFileAsync

  • getFileAsync(callback: Function, filePath: string, binary?: boolean, contentType?: string, headers: Header[], disableCache?: boolean, withCredentials?: boolean, allowException?: boolean): void
  • Parameters

    • callback: Function
    • filePath: string
    • Default value binary: boolean = false
    • Default value contentType: string = ""
    • headers: Header[]
    • Default value disableCache: boolean = true
    • Default value withCredentials: boolean = undefined
    • Default value allowException: boolean = false

    Returns void

Static getUrlParameters

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

Static send

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

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

    Returns object

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

Static sendAsync

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

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

    Returns StiPromise<object>

Generated using TypeDoc