-
Book Overview & Buying
-
Table Of Contents
MEAN Web Development
By :
The Express core is minimal, yet the team behind it provides various predefined middleware to handle common web development features. These types of middleware vary in size and functionality and extend Express to provide a better framework support. The popular Express middleware are as follows:
Morgan: This is an HTTP request logger middleware.
body-parser: This is a body-parsing middleware that is used to parse the request body, and it supports various request types.
method-override: This is a middleware that provides HTTP verb support such as PUT or DELETE in places where the client doesn't support it.
Compression: This is a compression middleware that is used to compress the response data using gzip/deflate.
express.static: This middleware used to serve static files.
cookie-parser: This is a cookie-parsing middleware that populates the req.cookies object.
Session: This is a session middleware used to support persistent sessions.
There are many more types of Express...