HttpRequest class

Index

Constructors

Public Properties

Public Methods

Constructors


constructor

⊕ new HttpRequest(xhr: XMLHttpRequest,descriptor: HttpRequestDescriptor): HttpRequest

Parameters:


Public Properties


data

● data?: any


method

● method: HttpMethod


url

● url: string


Public Methods


abort

▸ abort(): void

Returns void


getResponseHeaders

▸ getResponseHeaders(): HttpHeaders

Returns HttpHeaders


getXMLHttpRequest

▸ getXMLHttpRequest(): XMLHttpRequest

Returns XMLHttpRequest


open

▸ open(): void

Returns void


setHeader

▸ setHeader(name: string,value: string): void

Parameters:

  • name: string
  • value: string

Returns void


setQueryParam

▸ setQueryParam(name: string,value: string): void

Parameters:

  • name: string
  • value: string

Returns void