Skip to content

Instantly share code, notes, and snippets.

@delwar2016
Last active June 8, 2017 17:48
Show Gist options
  • Save delwar2016/6d0e7ffb1a614954ea1580d00b48e7dd to your computer and use it in GitHub Desktop.
Save delwar2016/6d0e7ffb1a614954ea1580d00b48e7dd to your computer and use it in GitHub Desktop.
Understanding NodeJs Express Middleware
Middleware functions can perform the following tasks:
1. Execute any code.
2. Make changes to the request and the response objects.
3. End the request-response cycle.
4. Call the next middleware function in the stack.
An Express application can use the following types of middleware:
# Application-level middleware
#Router-level middleware
#Error-handling middleware
#Built-in middleware
#Third-party middleware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment