๐HTTP Middleware WorkshopWORKSHOP
1
2
3
4
Step 1
Write a `Logger` middleware that prints `METHOD PATH` before calling `next.ServeHTTP`. Use `httptest.NewRecorder()` and `httptest.NewRequest` to test it without starting a real server. Print the request info from inside the middleware.
โ Enter (Mac) ยท Ctrl+Enter (Win/Linux)