Interface HTTPClient

Hierarchy

Index

Properties

Methods

Properties

public DONE: number

public HEADERS_RECEIVED: number

public LOADING: number

public OPENED: number

public UNSENT: number

public allResponseHeaders: string

public autoEncodeUrl: boolean

public autoRedirect: boolean

public bubbleParent: boolean

public cache: boolean

public connected: boolean

public connectionType: string

public domain: string

public enableKeepAlive: boolean

public file: string

public location: string

public ondatastream: (...args: any[]) => any

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

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

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

public onsendstream: (...args: any[]) => any

public password: string

public readyState: number

public responseData: Blob

public responseText: string

public responseXML: Document

public status: number

public statusText: string

public timeout: number

public tlsVersion: number

public username: string

public validatesSecureCertificate: boolean

public withCredentials: boolean

Methods

public abort()

public addAuthFactory(scheme: string, factory: any)

Parameters

  • scheme: string
  • factory: any

public addEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

public addKeyManager(X509KeyManager: any)

Parameters

  • X509KeyManager: any

public addTrustManager(X509TrustManager: any)

Parameters

  • X509TrustManager: any

public applyProperties(props: Dictionary)

Parameters

public clearCookies(host: string)

Parameters

  • host: string

public fireEvent(name: string, event: Dictionary)

Parameters

public getAllResponseHeaders(): string

Returns

string

public getAutoEncodeUrl(): boolean

Returns

boolean

public getAutoRedirect(): boolean

Returns

boolean

public getBubbleParent(): boolean

Returns

boolean

public getCache(): boolean

Returns

boolean

public getConnected(): boolean

Returns

boolean

public getConnectionType(): string

Returns

string

public getDomain(): string

Returns

string

public getEnableKeepAlive(): boolean

Returns

boolean

public getFile(): string

Returns

string

public getLocation(): string

Returns

string

public getOndatastream(): (...args: any[]) => any

Returns

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

public getOnerror(): (...args: any[]) => any

Returns

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

public getOnload(): (...args: any[]) => any

Returns

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

public getOnreadystatechange(): (...args: any[]) => any

Returns

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

public getOnsendstream(): (...args: any[]) => any

Returns

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

public getPassword(): string

Returns

string

public getReadyState(): number

Returns

number

public getResponseData(): Blob

Returns

Blob

public getResponseHeader(name: string): string

Parameters

  • name: string

Returns

string

public getResponseText(): string

Returns

string

public getResponseXML(): Document

Returns

Document

public getStatus(): number

Returns

number

public getStatusText(): string

Returns

string

public getTimeout(): number

Returns

number

public getTlsVersion(): number

Returns

number

public getUsername(): string

Returns

string

public getValidatesSecureCertificate(): boolean

Returns

boolean

public getWithCredentials(): boolean

Returns

boolean

public open(method: string, url: string, async?: boolean)

Parameters

  • method: string
  • url: string
  • async?: boolean optional

public removeEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

public send(data?: any)

Parameters

  • data?: any optional

public send(data?: string)

Parameters

  • data?: string optional

public send(data?: File)

Parameters

  • data?: File optional

public send(data?: Blob)

Parameters

  • data?: Blob optional

public setAutoEncodeUrl(autoEncodeUrl: boolean)

Parameters

  • autoEncodeUrl: boolean

public setAutoRedirect(autoRedirect: boolean)

Parameters

  • autoRedirect: boolean

public setBubbleParent(bubbleParent: boolean)

Parameters

  • bubbleParent: boolean

public setCache(cache: boolean)

Parameters

  • cache: boolean

public setDomain(domain: string)

Parameters

  • domain: string

public setEnableKeepAlive(enableKeepAlive: boolean)

Parameters

  • enableKeepAlive: boolean

public setFile(file: string)

Parameters

  • file: string

public setOndatastream(ondatastream: (...args: any[]) => any)

Parameters

  • ondatastream: (...args: any[]) => any

public setOnerror(onerror: (...args: any[]) => any)

Parameters

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

public setOnload(onload: (...args: any[]) => any)

Parameters

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

public setOnreadystatechange(onreadystatechange: (...args: any[]) => any)

Parameters

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

public setOnsendstream(onsendstream: (...args: any[]) => any)

Parameters

  • onsendstream: (...args: any[]) => any

public setPassword(password: string)

Parameters

  • password: string

public setRequestHeader(name: string, value: string)

Parameters

  • name: string
  • value: string

public setTimeout(timeout: number)

Parameters

  • timeout: number

public setTlsVersion(tlsVersion: number)

Parameters

  • tlsVersion: number

public setUsername(username: string)

Parameters

  • username: string

public setValidatesSecureCertificate(validatesSecureCertificate: boolean)

Parameters

  • validatesSecureCertificate: boolean

public setWithCredentials(withCredentials: boolean)

Parameters

  • withCredentials: boolean