-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
I came across this repo and didn't understand how it differed from Express. This has some answers - https://stackoverflow.com/questions/5284340/what-is-node-js-connect-express-and-middleware
So, maybe could add something like this to the readme -
Connect is a minimalist middleware framework that basically extends Node.js's built-in http module. It provides a way to organize and chain "middleware" functions, through the "use" method.
Middleware functions are functions that have access to the request object (req), the response object (res), and the next middleware function in the application's request-response cycle.
Express is a more comprehensive web application framework that also supports routing and template engines. It was initially built on top of Connect - their middleware is still compatible.