Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RouterResponseController

Hierarchy

  • RouterResponseController

Index

Constructors

constructor

  • Parameters

    • applicationRef: any

    Returns RouterResponseController

Methods

apply

  • apply(result: any, response: any, httpStatusCode: any): Promise<any>
  • Parameters

    • result: any
    • response: any
    • httpStatusCode: any

    Returns Promise<any>

assertObservable

  • assertObservable(result: any): void
  • Parameters

    • result: any

    Returns void

getStatusByMethod

  • getStatusByMethod(requestMethod: any): OK | CREATED
  • Parameters

    • requestMethod: any

    Returns OK | CREATED

redirect

  • redirect(resultOrDeferred: any, response: any, redirectResponse: any): Promise<void>
  • Parameters

    • resultOrDeferred: any
    • response: any
    • redirectResponse: any

    Returns Promise<void>

render

  • render(resultOrDeferred: any, response: any, template: any): Promise<void>
  • Parameters

    • resultOrDeferred: any
    • response: any
    • template: any

    Returns Promise<void>

setHeaders

  • setHeaders(response: any, headers: any): void
  • Parameters

    • response: any
    • headers: any

    Returns void

setStatus

  • setStatus(response: any, statusCode: any): void
  • Parameters

    • response: any
    • statusCode: any

    Returns void

sse

  • sse(result: any, response: any, request: any): Promise<void>
  • Parameters

    • result: any
    • response: any
    • request: any

    Returns Promise<void>

transformToResult

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

    • resultOrDeferred: any

    Returns Promise<any>

Generated using TypeDoc