AjaxRemoteServiceOptions Interface

Provides options for customizing the AjaxRemoteService.

Declaration

interface AjaxRemoteServiceOptions

Properties

beforeSend Property

Specifies a pre-request callback function that can be used to modify the JQueryXHR object before it is sent.

Declaration

beforeSend?: (jqXHR: JQueryXHR, settings: JQueryAjaxSettings) => any

Property Value

Type Description
(jqXHR: JQueryXHR, settings: JQueryAjaxSettings) => any

A function that can be used to modify the JQueryXHR object before it is sent.

complete Property

Specifies a function to be called when the request finishes (after success and error callbacks are executed).

Declaration

complete?: (jqXHR: JQueryXHR, textStatus: string) => any

Property Value

Type Description
(jqXHR: JQueryXHR, textStatus: string) => any

A function to be called when the request finishes.

headers Property

Specifies an object of additional header key/value pairs to send along with requests using the XMLHttpRequest transport.

Declaration

headers?: {
    [key: string]: any;
}

Property Value

Type Description
[key: string]: any