core: httpListener
Starting point of every Marble.js application. It includes definitions of all middlewares and API effects.
Importing
Type declaration
Parameters
parameter
definition
config
HttpListenerConfig
req
Node.js Http.IncomingMessage
res
Node.js Http.OutgoingMessage
HttpListenerConfig
parameter
definition
effects
Array<RouteEffect | RouteEffectGroup>
middlewares
<optional> Array<Middleware>
errorEffect
<optional> ErrorEffect
Returns
void
Example
app.ts
Last updated