Add example demonstrating usage of middlewares for request processing