O'Reilly logo

Node.js in Action by Mike Cantelon, Marc Harter, T.J. Holowaychuk and Nathan Rajlich

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

Chapter 7. Connect’s built-in middleware

This chapter covers

  • Middleware for parsing cookies, request bodies, and query strings
  • Middleware that implements core web application needs
  • Middleware that handles web application security
  • Middleware for serving static files

In the previous chapter, you learned what middleware is, how to create it, and how to use it with Connect. But Connect’s real power comes from its bundled middleware, which meets many common web application needs, such as session management, cookie parsing, body parsing, request logging, and much more. This middleware ranges in complexity and provides a great starting point for building simple web servers or higher-level web frameworks.

Throughout this chapter, we’ll explain ...

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