http://expressjs.com/
var app = express.createServer();
app.get('/', function(req, res){
res.send('Hello World');
});
app.listen(3000);`
I can't find the corresponding reference about res.send
inside Node.js manual:
http://nodejs.org/docs/v0.4.12/api/http.html#http.ServerResponse
Is it an undocumented property, or id the property an inherent part of HTTP? If so, where can I find corresponding reference on all the properties?
It's a part of Express.js, not Node.js.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With