Express
Last updated
Last updated
[sdks/expressjs/Express]
Core interface to Express.js. Use higher level nodes to interact with Express.
Keywords: http server, api, express, rest
action:
Receives the parameters of the action to execute. Example: { "id": "my-express-server", "type": "listen", "options": { "port": 3000 } }
response:
Receives the response to be sent out to the client. Example: { "status": 200, "headers": { "content-type": "application/json" }, "body": "Done" }
request:
Sends the request processed by defined handlers. Can be used to post-process the request.
done: (null or {"port": number, "hostname": string})
Event triggered when the specified action has been executed.
error: {"error": string, "origin": string}
Sends error information in case the specified action could not be successfully executed. Example: { "error": "listen EADDRINUSE: address already in use 127.0.0.1:8080", "origin": "server" }
(by compilation target and repository)
es6-node:
npm:
express
cors