Method: JSONAPI::Exceptions::HeadersExceptions.check_request

Defined in:
lib/easy/jsonapi/exceptions/headers_exceptions.rb

.check_request(env, config_manager = nil, opts = {}) ⇒ Object

Check http verb vs included headers

Parameters:

  • env (Hash)

    The rack environment variable

  • config_manager (JSONAPI::ConfigManager) (defaults to: nil)

    The manager of user configurations

  • opts (Hash) (defaults to: {})

    Includes http_method, path, and contains_body values



30
31
32
33
# File 'lib/easy/jsonapi/exceptions/headers_exceptions.rb', line 30

def self.check_request(env, config_manager = nil, opts = {})
  check_compliance(env, config_manager, opts)
  check_http_method_against_headers(env, opts[:contains_body])
end