Ultimately, express uses the node http api backstage.
express framework
The express structure provides a layer of abstraction over the http-vanilla module to simplify web traffic and API processing. There is also a lot of middleware available for express (and expressive) frameworks for common tasks, such as: CORS, XSRF, POST intelligibility, cookies, etc.
http api
The http api is very simple and is used to configure and manage incoming / outgoing HTTP connections. node does most of the heavy lifting here, but it provides what you usually see in most node web frameworks such as: request / response , etc.
source share