Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RouterResponseController

Hierarchy

  • RouterResponseController

Index

Constructors

constructor

Properties

Private Readonly applicationRef

applicationRef: HttpServer

Methods

apply

  • apply<TInput, TResponse>(result: TInput, response: TResponse, httpStatusCode?: number): Promise<any>

Private assertObservable

  • assertObservable(result: any): void

getStatusByMethod

redirect

  • redirect<TInput, TResponse>(resultOrDeferred: TInput, response: TResponse, redirectResponse: RedirectResponse): Promise<void>

render

  • render<TInput, TResponse>(resultOrDeferred: TInput, response: TResponse, template: string): Promise<void>

setHeaders

  • setHeaders<TResponse>(response: TResponse, headers: CustomHeader[]): void

setStatus

  • setStatus<TResponse>(response: TResponse, statusCode: number): void

sse

  • sse<TInput, TResponse, TRequest>(result: TInput, response: TResponse, request: TRequest): Promise<void>

transformToResult

  • transformToResult(resultOrDeferred: any): Promise<any>

Generated using TypeDoc