instance method
safe_method?
Ruby on Rails edge
Since edgeSignature
safe_method?()
True if the request method is safe per RFC 9110 §9.2.1 (GET, HEAD, OPTIONS, or TRACE) or RFC 10008 (QUERY).
Source
# File actionpack/lib/action_dispatch/http/request.rb, line 483
def safe_method?
get? || head? || query? || options? || trace?
end
Defined in actionpack/lib/action_dispatch/http/request.rb line 483
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request