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 ...
Get Node.js in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.