lib/roda/plugins/not_allowed.rb
def method_not_allowed(verbs)
          res = response
          res.status = 405
          res['Allow'] = verbs
        end
# Set the response status to 405 (Method Not Allowed), and set the Allow header
# to the given string of allowed request methods.
Set the response status to 405 (Method Not Allowed), and set the Allow header
to the given string of allowed request methods.
Set the response status to 405 ( Method Not Allowed ) and set the Allow header to the given string of allowed request methods .
def method_not_allowed(verbs)
          res = response
          res.status = 405
          res['Allow'] = verbs
        end
def method_not_allowed ( verbs ) res = response res . status = 405 res [ 'Allow' ] = verbs end
Set the response status to 405 (Method Not Allowed), and set the Allow header
to the given string of allowed request methods.
Set the response status to 405 ( Method Not Allowed ) and set the Allow header to the given string of allowed request methods .
verbs