Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Express.js res.send - Is it in Node.js Manual?

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?

like image 468
gsklee Avatar asked Feb 23 '23 16:02

gsklee


1 Answers

It's a part of Express.js, not Node.js.

like image 80
Dominic Barnes Avatar answered Feb 26 '23 21:02

Dominic Barnes