Preparing search index...
The search index is not available
Deepkit
Deepkit
http
HttpListener
Class HttpListener
Hierarchy
HttpListener
Index
Constructors
constructor
Properties
logger
result
Formatter
router
stopwatch?
Methods
on
Access
Denied
on
Auth
on
Controller
on
Controller
Error
on
Parameters
Failed
on
Request
on
Resolve
Parameters
on
Response
on
Result
Serialization
on
Route
on
Route
Forward
route
Not
Found
Constructors
constructor
new
Http
Listener
(
router
:
HttpRouter
, logger
:
LoggerInterface
, resultFormatter
:
HttpResultFormatter
, stopwatch
?:
Stopwatch
)
:
HttpListener
Parameters
router:
HttpRouter
logger:
LoggerInterface
resultFormatter:
HttpResultFormatter
Optional
stopwatch:
Stopwatch
Returns
HttpListener
Properties
Protected
logger
logger
:
LoggerInterface
Protected
result
Formatter
result
Formatter
:
HttpResultFormatter
Protected
router
router
:
HttpRouter
Protected
Optional
stopwatch
stopwatch
?:
Stopwatch
Methods
on
Access
Denied
on
Access
Denied
(
event
:
BaseEvent
&
Omit
<
HttpAccessDeniedEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
)
:
void
Parameters
event:
BaseEvent
&
Omit
<
HttpAccessDeniedEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
Returns
void
on
Auth
on
Auth
(
event
:
BaseEvent
&
Omit
<
HttpAuthEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
)
:
void
Parameters
event:
BaseEvent
&
Omit
<
HttpAuthEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
Returns
void
on
Controller
on
Controller
(
event
:
BaseEvent
&
Omit
<
HttpControllerEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
)
:
Promise
<
void
>
Parameters
event:
BaseEvent
&
Omit
<
HttpControllerEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
Returns
Promise
<
void
>
on
Controller
Error
on
Controller
Error
(
event
:
BaseEvent
&
Omit
<
HttpControllerErrorEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
)
:
void
Parameters
event:
BaseEvent
&
Omit
<
HttpControllerErrorEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
Returns
void
on
Parameters
Failed
on
Parameters
Failed
(
event
:
BaseEvent
&
Omit
<
HttpControllerErrorEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
)
:
void
Parameters
event:
BaseEvent
&
Omit
<
HttpControllerErrorEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
Returns
void
on
Request
on
Request
(
event
:
BaseEvent
&
Omit
<
HttpWorkflowEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
)
:
void
Parameters
event:
BaseEvent
&
Omit
<
HttpWorkflowEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
Returns
void
on
Resolve
Parameters
on
Resolve
Parameters
(
event
:
BaseEvent
&
Omit
<
HttpResolveParametersEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
)
:
Promise
<
void
>
Parameters
event:
BaseEvent
&
Omit
<
HttpResolveParametersEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
Returns
Promise
<
void
>
on
Response
on
Response
(
event
:
BaseEvent
&
Omit
<
HttpResponseEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
)
:
Promise
<
void
>
Parameters
event:
BaseEvent
&
Omit
<
HttpResponseEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
Returns
Promise
<
void
>
on
Result
Serialization
on
Result
Serialization
(
event
:
BaseEvent
&
Omit
<
HttpResponseEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
)
:
Promise
<
void
>
This happens before the result is sent.
Parameters
event:
BaseEvent
&
Omit
<
HttpResponseEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
Returns
Promise
<
void
>
on
Route
on
Route
(
event
:
BaseEvent
&
Omit
<
HttpRouteEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
)
:
Promise
<
void
>
Parameters
event:
BaseEvent
&
Omit
<
HttpRouteEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
Returns
Promise
<
void
>
on
Route
Forward
on
Route
Forward
(
event
:
BaseEvent
&
Omit
<
HttpRouteEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
)
:
void
Parameters
event:
BaseEvent
&
Omit
<
HttpRouteEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
Returns
void
route
Not
Found
route
Not
Found
(
event
:
BaseEvent
&
Omit
<
HttpWorkflowEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
)
:
Promise
<
void
>
Parameters
event:
BaseEvent
&
Omit
<
HttpWorkflowEvent
,
"next"
|
"nextState"
>
&
WorkflowNextEvent
<
{
accessDenied
:
typeof
HttpAccessDeniedEvent
;
auth
:
typeof
HttpAuthEvent
;
controller
:
typeof
HttpControllerEvent
;
controllerError
:
typeof
HttpControllerErrorEvent
;
parametersFailed
:
typeof
HttpControllerErrorEvent
;
request
:
typeof
HttpWorkflowEvent
;
resolveParameters
:
typeof
HttpResolveParametersEvent
;
response
:
typeof
HttpResponseEvent
;
route
:
typeof
HttpRouteEvent
;
routeNotFound
:
typeof
HttpWorkflowEvent
;
start
:
typeof
WorkflowEvent
;
}
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Modules
Deepkit
angular-
universal
api-
console-
api
api-
console-
module
app
broker
bson
core
core-
rxjs
create-
app
crypto
event
framework
framework-
debug-
api
http
injector
logger
mongo
mysql
orm
orm-
browser-
api
orm-
integration
postgres
rpc
rpc-
tcp
skeleton
sql
sqlite
stopwatch
template
type
type-
compiler
workflow
Http
Listener
constructor
logger
result
Formatter
router
stopwatch?
on
Access
Denied
on
Auth
on
Controller
on
Controller
Error
on
Parameters
Failed
on
Request
on
Resolve
Parameters
on
Response
on
Result
Serialization
on
Route
on
Route
Forward
route
Not
Found
Generated using
TypeDoc
This happens before the result is sent.