Skip to content

HttpActionResult class


⊕ new HttpActionResult(request: HttpRequest,promise: Promise<T>): HttpActionResult



▸ catch(onrejected?: (reason: any) => TResult | PromiseLike<TResult>): Promise<T | TResult>

  • onrejected: (reason: any) => TResult | PromiseLike<TResult>, Optional

Returns Promise<T | TResult>


▸ finally(onfinally?: () => void): Promise<T>

  • onfinally: () => void, Optional

Returns Promise<T>


▸ getPromise(): Promise<T>

Returns Promise<T>


▸ getRequest(): HttpRequest

Returns HttpRequest


▸ then(onfulfilled?: (value: T) => TResult1 | PromiseLike<TResult1>,onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>): Promise<TResult1 | TResult2>

  • onfulfilled: (value: T) => TResult1 | PromiseLike<TResult1>, Optional
  • onrejected: (reason: any) => TResult2 | PromiseLike<TResult2>, Optional

Returns Promise<TResult1 | TResult2>