HttpActionResult class

Index

Constructors

Public Methods

Constructors


constructor

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

Parameters:


Public Methods


catch

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

Parameters:

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

Returns Promise<T | TResult>


finally

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

Parameters:

  • onfinally: () => void, Optional

Returns Promise<T>


getPromise

▸ getPromise(): Promise<T>

Returns Promise<T>


getRequest

▸ getRequest(): HttpRequest

Returns HttpRequest


then

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

Parameters:

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

Returns Promise<TResult1 | TResult2>