Interface IHttpPromise

Hierarchy

Index

Methods

Methods

public catch(onRejected: (reason: any) => ng.IHttpPromise<TResult>): IPromise

Parameters

  • onRejected: (reason: any) => ng.IHttpPromise<TResult>

Returns

IPromise

public catch(onRejected: (reason: any) => ng.IPromise<TResult>): IPromise

Parameters

  • onRejected: (reason: any) => ng.IPromise<TResult>

Returns

IPromise

public catch(onRejected: (reason: any) => TResult): IPromise

Parameters

  • onRejected: (reason: any) => TResult

Returns

IPromise

public error(callback: IHttpPromiseCallback): IHttpPromise

Parameters

Returns

IHttpPromise

public finally(finallyCallback: () => any): IPromise

Parameters

  • finallyCallback: () => any

Returns

IPromise

public success(callback: IHttpPromiseCallback): IHttpPromise

Parameters

Returns

IHttpPromise

public then(successCallback: (response: ng.IHttpPromiseCallbackArg<T>) => TResult, errorCallback?: (response: ng.IHttpPromiseCallbackArg<T>) => any): IPromise

Parameters

  • successCallback: (response: ng.IHttpPromiseCallbackArg<T>) => TResult
  • errorCallback?: (response: ng.IHttpPromiseCallbackArg<T>) => any optional

Returns

IPromise

public then(successCallback: (response: ng.IHttpPromiseCallbackArg<T>) => ng.IPromise<TResult>, errorCallback?: (response: ng.IHttpPromiseCallbackArg<T>) => any): IPromise

Parameters

  • successCallback: (response: ng.IHttpPromiseCallbackArg<T>) => ng.IPromise<TResult>
  • errorCallback?: (response: ng.IHttpPromiseCallbackArg<T>) => any optional

Returns

IPromise