O'Reilly logo

Node.js, MongoDB and Angular Web Development, 2nd Edition by Caleb Dayley, Brendan Dayley, Brad Dayley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

19Implementing Express Middleware

Much of the functionality that Express brings to the table is through middleware functions that get executed between the point when the request is received by Node.js and the time that the response is sent. Express uses the connect module to provide a middleware framework that allows you to easily insert middleware functionality on a global or path level or for a single route.

The middleware provided with Express allows you to quickly support serving static files, implement cookies, support sessions, process POST data, and much more. You can even create your own custom middleware functions that can be used to preprocess the requests and provide your own functionality.

This chapter focuses on the basics of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required