diff options
author | Jamie Hodge <jamiehodge@me.com> | 2013-06-15 22:15:00 +0200 |
---|---|---|
committer | Jamie Hodge <jamiehodge@me.com> | 2013-06-15 22:15:00 +0200 |
commit | a81b0f97b41d7d9370dceeff6d095a02a1b0ee1c (patch) | |
tree | 8e27a5aa4c703caa3d1f60f400708a84450f601c | |
parent | bd8c10485d58710e99df384310a2b0fdcdb91ed9 (diff) | |
download | rack-a81b0f97b41d7d9370dceeff6d095a02a1b0ee1c.tar.gz |
add #link? and #unlink?
-rw-r--r-- | lib/rack/request.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rack/request.rb b/lib/rack/request.rb index 66fb0c5a..f3a048ab 100644 --- a/lib/rack/request.rb +++ b/lib/rack/request.rb @@ -128,6 +128,9 @@ module Rack # Checks the HTTP request method (or verb) to see if it was of type OPTIONS def options?; request_method == "OPTIONS" end + # Checks the HTTP request method (or verb) to see if it was of type LINK + def link?; request_method == "LINK" end + # Checks the HTTP request method (or verb) to see if it was of type PATCH def patch?; request_method == "PATCH" end @@ -139,6 +142,9 @@ module Rack # Checks the HTTP request method (or verb) to see if it was of type TRACE def trace?; request_method == "TRACE" end + + # Checks the HTTP request method (or verb) to see if it was of type UNLINK + def unlink?; request_method == "UNLINK" end # The set of form-data media-types. Requests that do not indicate |