module Grape::Http::Headers
Constants
- CONTENT_TYPE
- DELETE
- FORMAT
- GET
- HEAD
- HTTP_ACCEPT
- HTTP_ACCEPT_VERSION
- HTTP_HEADERS
- HTTP_TRANSFER_ENCODING
- HTTP_VERSION
- OPTIONS
- PATCH
- PATH_INFO
- POST
- PUT
- QUERY_STRING
- REQUEST_METHOD
- SUPPORTED_METHODS
- SUPPORTED_METHODS_WITHOUT_OPTIONS
- X_CASCADE
Public Class Methods
find_supported_method(route_method)
click to toggle source
# File lib/grape/http/headers.rb, line 56 def self.find_supported_method(route_method) Grape::Http::Headers::SUPPORTED_METHODS.detect { |supported_method| supported_method.casecmp(route_method).zero? } end