lib/angelo.rb in angelo-0.5.0 vs lib/angelo.rb in angelo-0.5.1
- old
+ new
@@ -9,17 +9,18 @@
# RubyProf.pause
module Angelo
GET = 'GET'
+ PATCH = 'PATCH'
POST = 'POST'
PUT = 'PUT'
DELETE = 'DELETE'
OPTIONS = 'OPTIONS'
- HTTPABLE = [:get, :post, :put, :delete, :options]
+ HTTPABLE = [:get, :patch, :post, :put, :delete, :options]
STATICABLE = [:get, :head]
- POST_OVERRIDABLE = [:put, :delete]
+ POST_OVERRIDABLE = [:patch, :put, :delete]
ACCEPT_REQUEST_HEADER_KEY = 'Accept'
POST_OVERRIDE_REQUEST_HEADER_KEY = 'X-Angelo-PostOverride'
REAL_IP_REQUEST_HEADER_KEY = 'X-Real-IP'