Last active
June 8, 2017 17:48
-
-
Save delwar2016/6d0e7ffb1a614954ea1580d00b48e7dd to your computer and use it in GitHub Desktop.
Understanding NodeJs Express Middleware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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