instance method
abort
Ruby on Rails 6.0.6
Since v4.2.9Signature
abort()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/http/response.rb, line 382
def abort
if stream.respond_to?(:abort)
stream.abort
elsif stream.respond_to?(:close)
# `stream.close` should really be reserved for a close from the
# other direction, but we must fall back to it for
# compatibility.
stream.close
end
end
Defined in actionpack/lib/action_dispatch/http/response.rb line 382
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Response