Class RouterResponseController
Constructors
constructor
-
Parameters
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
Returns void
getStatusByMethod
- getStatusByMethod(requestMethod: any): OK | CREATED
-
Parameters
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
Returns Promise<any>