httpListener
Starting point of every Marble.js application. It includes definitions of all middlewares and API effects.
Importing
Type declaration
Parameters
parameter | definition |
config |
|
req | Node.js |
res | Node.js |
HttpListenerConfig
parameter | definition |
effects |
|
middlewares | <optional> |
error$ | <optional> |
Returns
Besides the default http server handler, the httpListener
returns also an configuration object.
parameter | definitoin |
routing |
|
injector |
|
Example
http.listener
Last updated