module Rack::Request::Helpers

def post?; request_method == POST end

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