Express is a minimal and flexible Node.js web application framework, providing a robust set of features for building web applications.
The official website of Express is expressjs.com. The source can be found on GitHub.
- app.get(path [, middleware], callback[, callback...])
- app.put(path [, middleware], callback[, callback...])
- app.post(path [, middleware], callback[, callback...])
- app['delete'](path [, middleware], callback[, callback...])
- app.use(path [, middleware], callback[, callback...])
|Specifies the path portion or the URL that the given callback will handle.|
|One or more functions which will be called before the callback. Essentially a chaining of multiple |
callback functions. Useful for more specific handling for example authorization or error handling.
|A function that will be used to handle requests to the specified |
path. It will be called like
callback(request, response, next), where
next are described below.
|An object encapsulating details about the HTTP request that the callback is being called to handle.|
|An object that is used to specify how the server should respond to the request.|
|A callback that passes control on to the next matching route. It accepts an optional error object.|
Using WebSocket's with Node.JS
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0