Sha256: e7842f57a6813cfe35ac101ec3583ddee64669afa3af33a872fb6bf166c8f1a4

Contents?: true

Size: 924 Bytes

Versions: 16

Compression:

Stored size: 924 Bytes

Contents

module Grape
  module Http
    module Headers
      # https://github.com/rack/rack/blob/master/lib/rack.rb
      HTTP_VERSION    = 'HTTP_VERSION'.freeze
      PATH_INFO       = 'PATH_INFO'.freeze
      REQUEST_METHOD  = 'REQUEST_METHOD'.freeze
      QUERY_STRING    = 'QUERY_STRING'.freeze
      CONTENT_TYPE    = 'Content-Type'.freeze

      GET     = 'GET'.freeze
      POST    = 'POST'.freeze
      PUT     = 'PUT'.freeze
      PATCH   = 'PATCH'.freeze
      DELETE  = 'DELETE'.freeze
      HEAD    = 'HEAD'.freeze
      OPTIONS = 'OPTIONS'.freeze

      SUPPORTED_METHODS = [GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS].freeze

      HTTP_ACCEPT_VERSION    = 'HTTP_ACCEPT_VERSION'.freeze
      X_CASCADE              = 'X-Cascade'.freeze
      HTTP_TRANSFER_ENCODING = 'HTTP_TRANSFER_ENCODING'.freeze
      HTTP_ACCEPT            = 'HTTP_ACCEPT'.freeze

      FORMAT                 = 'format'.freeze
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.2.5/lib/grape/http/headers.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/grape-1.2.5/lib/grape/http/headers.rb
grape-1.2.5 lib/grape/http/headers.rb
grape-1.2.4 lib/grape/http/headers.rb
grape-1.2.3 lib/grape/http/headers.rb
grape-1.2.2 lib/grape/http/headers.rb
grape-1.2.1 lib/grape/http/headers.rb
grape-1.2.0 lib/grape/http/headers.rb
grape-1.1.0 lib/grape/http/headers.rb
grape-1.0.3 lib/grape/http/headers.rb
grape-1.0.2 lib/grape/http/headers.rb
grape-1.0.1 lib/grape/http/headers.rb
grape-1.0.0 lib/grape/http/headers.rb
grape-0.19.2 lib/grape/http/headers.rb
grape-0.19.1 lib/grape/http/headers.rb
grape-0.19.0 lib/grape/http/headers.rb