Module: GrapeOAS::Constants::HttpMethods

Defined in:
lib/grape_oas/constants.rb

Overview

HTTP method-related constants

Constant Summary collapse

BODYLESS_HTTP_METHODS =

HTTP methods that typically don’t have request bodies. Per RFC 7231, GET/HEAD/DELETE semantics don’t define body behavior, but many implementations ignore them. These are treated specially when generating OpenAPI specs.

%w[get head delete].freeze