Search
Preparing search index...
The search index is not available
@nestjs/core
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
RouterResponseController
Class RouterResponseController
Hierarchy
RouterResponseController
Index
Constructors
constructor
Properties
application
Ref
Methods
apply
assert
Observable
get
Status
ByMethod
redirect
render
set
Headers
set
Status
sse
transform
ToResult
Constructors
constructor
new
Router
Response
Controller
(
applicationRef
:
HttpServer
)
:
RouterResponseController
Parameters
applicationRef:
HttpServer
Returns
RouterResponseController
Properties
Private
Readonly
application
Ref
application
Ref
:
HttpServer
Methods
apply
apply<TInput, TResponse>
(
result
:
TInput
, response
:
TResponse
, httpStatusCode
?:
number
)
:
Promise
<
any
>
Type parameters
TInput =
any
TResponse =
any
Parameters
result:
TInput
response:
TResponse
Optional
httpStatusCode:
number
Returns
Promise
<
any
>
Private
assert
Observable
assert
Observable
(
result
:
any
)
:
void
Parameters
result:
any
Returns
void
get
Status
ByMethod
get
Status
ByMethod
(
requestMethod
:
RequestMethod
)
:
number
Parameters
requestMethod:
RequestMethod
Returns
number
redirect
redirect<TInput, TResponse>
(
resultOrDeferred
:
TInput
, response
:
TResponse
, redirectResponse
:
RedirectResponse
)
:
Promise
<
void
>
Type parameters
TInput =
any
TResponse =
any
Parameters
resultOrDeferred:
TInput
response:
TResponse
redirectResponse:
RedirectResponse
Returns
Promise
<
void
>
render
render<TInput, TResponse>
(
resultOrDeferred
:
TInput
, response
:
TResponse
, template
:
string
)
:
Promise
<
void
>
Type parameters
TInput =
unknown
TResponse =
unknown
Parameters
resultOrDeferred:
TInput
response:
TResponse
template:
string
Returns
Promise
<
void
>
set
Headers
set
Headers<TResponse>
(
response
:
TResponse
, headers
:
CustomHeader
[]
)
:
void
Type parameters
TResponse =
unknown
Parameters
response:
TResponse
headers:
CustomHeader
[]
Returns
void
set
Status
set
Status<TResponse>
(
response
:
TResponse
, statusCode
:
number
)
:
void
Type parameters
TResponse =
unknown
Parameters
response:
TResponse
statusCode:
number
Returns
void
sse
sse<TInput, TResponse, TRequest>
(
result
:
TInput
, response
:
TResponse
, request
:
TRequest
)
:
Promise
<
void
>
Type parameters
TInput
:
Observable
<
unknown
>
=
any
TResponse
:
HeaderStream
=
any
TRequest
:
IncomingMessage
=
any
Parameters
result:
TInput
response:
TResponse
request:
TRequest
Returns
Promise
<
void
>
transform
ToResult
transform
ToResult
(
resultOrDeferred
:
any
)
:
Promise
<
any
>
Parameters
resultOrDeferred:
any
Returns
Promise
<
any
>
Globals
Router
Response
Controller
constructor
application
Ref
apply
assert
Observable
get
Status
ByMethod
redirect
render
set
Headers
set
Status
sse
transform
ToResult
Generated using
TypeDoc