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
HttpListenerConfig
parameter
definition
effects
<optional> Array<RouteEffect | RouteEffectGroup>
middlewares
<optional> Array<HttpMiddlewareEffect>
error$
<optional> HttpErrorEffect
output$
<optional> HttpOutputEffect
Returns
Reader<Context, HttpListener>
Example
http.listener
Last updated