Tower Middleware
摘要
When developing backend servers, requests from clients often require various preprocessing tasks before executing the actual logic, or responses may need post-processing. Instead of writing this common work in every function, you can use middleware that sits between the client and server to intercept and process requests and responses. In this chapter, we’ll explore how to implement middleware using tower.