Module: Grape::Http::Headers
- Defined in:
- lib/grape/http/headers.rb
Constant Summary collapse
- HTTP_VERSION =
'HTTP_VERSION'
- PATH_INFO =
'PATH_INFO'
- REQUEST_METHOD =
'REQUEST_METHOD'
- QUERY_STRING =
'QUERY_STRING'
- CONTENT_TYPE =
'Content-Type'
- GET =
'GET'
- POST =
'POST'
- PUT =
'PUT'
- PATCH =
'PATCH'
- DELETE =
'DELETE'
- HEAD =
'HEAD'
- OPTIONS =
'OPTIONS'
- SUPPORTED_METHODS =
[GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS].freeze
- HTTP_ACCEPT_VERSION =
'HTTP_ACCEPT_VERSION'
- X_CASCADE =
'X-Cascade'
- HTTP_TRANSFER_ENCODING =
'HTTP_TRANSFER_ENCODING'
- HTTP_ACCEPT =
'HTTP_ACCEPT'
- FORMAT =
'format'
Class Method Summary collapse
Class Method Details
.find_supported_method(route_method) ⇒ Object
30 31 32 |
# File 'lib/grape/http/headers.rb', line 30 def self.find_supported_method(route_method) Grape::Http::Headers::SUPPORTED_METHODS.detect { |supported_method| supported_method.casecmp(route_method).zero? } end |