module Rack::Request::Helpers

def put?; request_method == PUT end

Checks the HTTP request method (or verb) to see if it was of type PUT
def put?;     request_method == PUT     end