---
title: "Discussion on \"What is Middleware in Express and How It Works\" | Hashnode"
description: "Discussion on \"What is Middleware in Express and How It Works\". What is Middleware in Express?\nMiddleware in Express is a function that has access to:\n\nreq → Request object\n\nres → Response object\n\nnext() → Function that passes control to the next middleware\n\n\nBasi"
url: "https://hashnode.com/posts/what-is-middleware-in-express-and-how-it-works/69ff28d7f239332df4a84b9b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What is Middleware in Express and How It Works](https://skullcoder.hashnode.dev/what-is-middleware-in-express-and-how-it-works?utm_source=hashnode&utm_medium=feed)

What is Middleware in Express? Middleware in Express is a function that has access to: req → Request object res → Response object next() → Function that passes control to the next middleware Basi

May 9 · 4 min read · skullcoder.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#chaicode](https://hashnode.com/tag/chaicode)

## Written by

[Krish](https://hashnode.com/@skullCoder)

@skullCoder

  
[View profile](https://hashnode.com/@skullCoder)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
