the error handler will send an error
the route handler will send the data
befor the route handler
after the route handler
when you send more than one request to the server and make interupt between this requests, the server will dell with this requests by send a response have an error.
Middleware
Express middleware are functions that execute during the lifecycle of a request to the Express server. Each middleware has access to the HTTP request and response for each route (or path) it’s attached to.
Request Object
The req object represents the HTTP request and has properties for the request query string, parameters, body, HTTP headers, and so on.
all operations on a URL must use a Request object.
Response Object
The res object represents the HTTP response that an Express app sends when it gets an HTTP request.
communicates between the server and the output which is sent to the client
Application Middleware
Middleware functions are functions that have access to the request object ( req ), the response object ( res ), and the next function in the application’s request-response cycle.
Essentially functioning as hidden translation layer, middleware enables communication and data management for distributed applications.
Routing Middleware
Routing defines the way in which the client requests are handled by the application endpoints.
Test Driven Development
Test-driven development (TDD) is a software development process relying on software requirements being converted to test cases before software is fully developed
It is most often associated with automated testing
Behavioral Testing
Behavioural Testing is a testing of the external behaviour of the program, also known as black box testing. It is usually a functional testing
is widely used and accepted as an integral part of toxicological evaluations