C# Class jQueryApi.jQueryXmlHttpRequest

Inheritance: IDeferred
Mostra file Open project: Saltarelle/SaltarelleJQuery Class Usage Examples

Private Properties

Property Type Description
Always jQueryXmlHttpRequest
Done jQueryXmlHttpRequest
Fail jQueryXmlHttpRequest
GetAwaiter TaskAwaiter
IDeferred IDeferred
IDeferred IDeferred
IDeferred IDeferred
IDeferred IDeferred
IDeferred IDeferred
IDeferred bool
IPromise void
IPromise void
IPromise void
jQueryXmlHttpRequest System

Public Methods

Method Description
Abort ( ) : void

Aborts the request.

Complete ( AjaxCompletedCallback callback ) : jQueryXmlHttpRequest

Adds a callback to handle completion of the request.

Error ( AjaxErrorCallback callback ) : jQueryXmlHttpRequest

Adds a callback to handle an error completing the request.

GetAllResponseHeaders ( ) : string

Gets the response headers associated with the request.

GetResponseHeader ( string name ) : string

Gets a specific response header associated with the request.

OverrideMimeType ( string type ) : void

Sets the mime type on the request.

Pipe ( jQueryDeferredFilter successFilter ) : jQueryXmlHttpRequest

Filters or chains the result of the request.

Pipe ( jQueryDeferredFilter successFilter, jQueryDeferredFilter failFilter ) : jQueryXmlHttpRequest

Filters or chains the result of the request.

SetRequestHeader ( string name, string value ) : void

Sets a request header value.

Success ( AjaxCallback callback ) : jQueryXmlHttpRequest

Adds a callback to handle a successful completion of the request.

Success ( AjaxRequestCallback callback ) : jQueryXmlHttpRequest

Adds a callback to handle a successful completion of the request.

Then ( System.Action doneCallback, System.Action failCallback ) : jQueryXmlHttpRequest

Add handlers to be called when the request is completed. If the request is already completed, the handlers are still invoked.

Then ( Callback doneCallback, Callback failCallback ) : jQueryXmlHttpRequest

Add handlers to be called when the request is completed. If the request is already completed, the handlers are still invoked.

Private Methods

Method Description
Always ( ) : jQueryXmlHttpRequest
Done ( ) : jQueryXmlHttpRequest
Fail ( ) : jQueryXmlHttpRequest
GetAwaiter ( ) : TaskAwaiter
IDeferred ( ) : IDeferred
IDeferred ( System.Action doneCallback, System.Action failCallback ) : IDeferred
IDeferred ( Callback doneCallback, Callback failCallback ) : IDeferred
IDeferred ( jQueryDeferredFilter successFilter ) : IDeferred
IDeferred ( jQueryDeferredFilter successFilter, jQueryDeferredFilter failFilter ) : IDeferred
IDeferred ( ) : bool
IPromise ( Delegate fulfilledHandler ) : void
IPromise ( Delegate fulfilledHandler, Delegate errorHandler ) : void
IPromise ( Delegate fulfilledHandler, Delegate errorHandler, Delegate progressHandler ) : void
jQueryXmlHttpRequest ( ) : System

Method Details

Abort() public method

Aborts the request.
public Abort ( ) : void
return void

Complete() public method

Adds a callback to handle completion of the request.
public Complete ( AjaxCompletedCallback callback ) : jQueryXmlHttpRequest
callback AjaxCompletedCallback The callback to invoke.
return jQueryXmlHttpRequest

Error() public method

Adds a callback to handle an error completing the request.
public Error ( AjaxErrorCallback callback ) : jQueryXmlHttpRequest
callback AjaxErrorCallback The callback to invoke.
return jQueryXmlHttpRequest

GetAllResponseHeaders() public method

Gets the response headers associated with the request.
public GetAllResponseHeaders ( ) : string
return string

GetResponseHeader() public method

Gets a specific response header associated with the request.
public GetResponseHeader ( string name ) : string
name string The name of the response header.
return string

OverrideMimeType() public method

Sets the mime type on the request.
public OverrideMimeType ( string type ) : void
type string The mime type to use.
return void

Pipe() public method

Filters or chains the result of the request.
public Pipe ( jQueryDeferredFilter successFilter ) : jQueryXmlHttpRequest
successFilter jQueryDeferredFilter The filter to invoke when the request successfully completes.
return jQueryXmlHttpRequest

Pipe() public method

Filters or chains the result of the request.
public Pipe ( jQueryDeferredFilter successFilter, jQueryDeferredFilter failFilter ) : jQueryXmlHttpRequest
successFilter jQueryDeferredFilter The filter to invoke when the request successfully completes.
failFilter jQueryDeferredFilter The filter to invoke when the request fails.
return jQueryXmlHttpRequest

SetRequestHeader() public method

Sets a request header value.
public SetRequestHeader ( string name, string value ) : void
name string The name of the request header.
value string The value of the request header.
return void

Success() public method

Adds a callback to handle a successful completion of the request.
public Success ( AjaxCallback callback ) : jQueryXmlHttpRequest
callback AjaxCallback The callback to invoke.
return jQueryXmlHttpRequest

Success() public method

Adds a callback to handle a successful completion of the request.
public Success ( AjaxRequestCallback callback ) : jQueryXmlHttpRequest
callback AjaxRequestCallback The callback to invoke.
return jQueryXmlHttpRequest

Then() public method

Add handlers to be called when the request is completed. If the request is already completed, the handlers are still invoked.
public Then ( System.Action doneCallback, System.Action failCallback ) : jQueryXmlHttpRequest
doneCallback System.Action The callback to invoke when the request completes successfully.
failCallback System.Action The callback to invoke when the request completes with an error.
return jQueryXmlHttpRequest

Then() public method

Add handlers to be called when the request is completed. If the request is already completed, the handlers are still invoked.
public Then ( Callback doneCallback, Callback failCallback ) : jQueryXmlHttpRequest
doneCallback Callback The callback to invoke when the request completes successfully.
failCallback Callback The callback to invoke when the request completes with an error.
return jQueryXmlHttpRequest