reading-notes

Code-Fellows reading notes.

View the Project on GitHub bkasprzyk19/reading-notes

<==Back

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

https://expressjs.com/en/guide/writing-middleware.html

True or false: The route handler is middleware?

https://stackoverflow.com/questions/58925276/what-is-the-difference-between-a-route-handler-and-middleware-function-in-expres#:~:text=They%20are%20not%20middleware%20functions,the%20only%20one%20callback%20function.

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”

Middleware

Request Object -https://book.cakephp.org/3/en/controllers/request-response.html

Response Object -https://book.cakephp.org/3/en/controllers/request-response.html

Application Middleware

Routing Middleware

Test Driven Development

Behavioral Testing ?