@kronos-integration/service-koa
v8.0.0
Published
koa backed http server
Downloads
18
Readme
kronos-service-koa
koa backed http server
API
Table of Contents
ServiceKOA
Extends Service
HTTP server with koa
Parameters
args
...any
Properties
server
http.Server only present if state is runningkoa
koa
endpointFactoryFromConfig
on demand create RouteSendEndpoint´s
Parameters
Returns Class RouteSendEndpoint if path is present of name starts with '/'
name
Returns string 'koa'
HTTPEndpoint
Extends SendEndpoint
Endpoint to link against a http route
Parameters
WSEndpoint
Extends SendEndpoint
Endpoint to link against a websocket route
Parameters
CTXInterceptor
Extends Interceptor
extracts params form request body
name
Returns string 'ctx-body-param'
CTXBodyParamInterceptor
Extends Interceptor
extracts params form request body
name
Returns string 'ctx-body-param'
CTXJWTVerifyInterceptor
Extends Interceptor
only forward requests if a valid jwt token is present
name
Returns string 'ctx-jwt-verify'
install
With npm do:
npm install kronos-service-koa
license
BSD-2-Clause