Express 3.x - Referencia de API
Express 3.x IS END-OF-LIFE AND NO LONGER MAINTAINED
Known and unknown security and performance issues in 3.x have not been addressed since the last update (1 August, 2015). It is highly recommended to use the latest version of Express.
If you are unable to upgrade past 3.x, please consider Commercial Support Options.
Note
Express 3.x requires Node.js 0.8.0 or higher.
3.x API
This section provides an overview of the modules and APIs available in Express 3.x for building web applications and HTTP services.
express()
The express() function, exported by the express module, creates and returns a new application instance that serves as the foundation for defining routes, configuring middleware, and handling HTTP requests.
var express = require('express');var app = express();
app.get('/', function (req, res) { res.send('hello world');});
app.listen(3000);After creating an application instance, you can define routes, configure middleware, and start handling HTTP requests
Application Object
Learn about the properties and methods of the Express 3.x application object.
Request Object
Learn about the properties and methods of the Express 3.x request object.
Response Object
Learn about the properties and methods of the Express 3.x response object.
Middleware
Learn about middleware in Express 3.x, including built-in and third-party options.