Rack middleware to check HTTP request methods and reject ones you don't want