Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Ajax

Index

Properties

Static AllowMethodsHeader

AllowMethodsHeader: "access-control-allow-methods" = "access-control-allow-methods"

Static AllowOriginHeader

AllowOriginHeader: "access-control-allow-origin" = "access-control-allow-origin"

Static ContentTypeHeader

ContentTypeHeader: "Content-Type" = "Content-Type"

Static ResponseTypeHeader

ResponseTypeHeader: "content-type" = "content-type"

Static _defaults

_defaults: AjaxDefaults = new AjaxDefaultsConstructor()

Methods

Static configureUpload

Static dataToFormData

  • dataToFormData(data: any): FormData

Static delete

Static fetch

Static get

  • get(url: string, props?: AjaxProps): Promise<any>

Static getRequestData

Static getResponse

  • getResponse(xhr: XMLHttpRequest, err?: Error): AjaxResponse

Static getResponseData

  • getResponseData(responseType: string, xhr: XMLHttpRequest): any

Static head

  • head(url: string, props?: AjaxProps): Promise<any>

Static isSuccess

  • isSuccess(status: number): boolean

Static options

  • options(url: string, props?: AjaxProps): Promise<any>

Static parseHeaders

  • parseHeaders(header: string): Props<string>

Static patch

Static post

Static put

Static setContentType

  • setContentType(client: XMLHttpRequest, contentType: string): string

Static setup

Static upload

Generated using TypeDoc