reading-notes


Project maintained by Razan-am Hosted on GitHub Pages — Theme by mattgraham

Express REST API

Name 3 real world use cases where you’d want to change the request with custom middleware

  1. Handling errors
  2. Adding query params
  3. Make changes to the request and the response objects.

True or false: The route handler is middleware?

In what ways can a middleware function end the process and send data to the browser?

At what point in the request lifecycle can you “inject” middleware?

What can cause express to error with “Request headers sent twice, cannot start a second response”

Document the following Vocabulary Terms

Term


References:

@By Express/Writing middleware for use in Express apps

@By stackoverflow/Request headers sent twice, cannot start a second response

@By azure/What is middleware?