Middleware for more convenience dealing with http params