Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are express.js Request events documented anywhere?

It seems to be common community knowledge that Express Request objects have events like req.on('data', …) and req.on('end', …), but the official documentation – https://expressjs.com/en/api.html – makes no mention of these events.

Are Express' Request events documented anywhere? And what – if any – guarantees are made about them?

like image 355
David Wolever Avatar asked Jan 15 '19 22:01

David Wolever


People also ask

Is ExpressJS obsolete?

js ecosystem. When you are looking for any tutorial to learn Node, Express is presented and taught to people. In the latest State of JS survey, Express was TOP 1 for all categories. Despite all of this, Express is not a great technology, and you should have stopped using it since 2015.

What is the difference between NodeJS and ExpressJS?

Node. js is a platform for building the i/o applications which are server-side event-driven and made using JavaScript. Express. js is a framework based on Node.

What is the difference between Axios and Express?

Axios is used to send a web request whereas express is used to listen and serve these web requests. In simple words, express is used to respond to the web requests sent by axios.

What is difference between Express and ExpressJS?

js is a run-time environment for building server-side event-driven i/o application using javascript. Express. js is a framework based on node.


1 Answers

Express request object is an extension of node original request object. All events which are supported by nodejs request should be also available in express

Here is the docs for nodejs request

https://nodejs.org/api/http.html#http_class_http_clientrequest

like image 119
Venkat Reddy Avatar answered Sep 24 '22 14:09

Venkat Reddy