Method: ActionDispatch::Response#abort

Defined in:
actionpack/lib/action_dispatch/http/response.rb

#abortObject



396
397
398
399
400
401
402
403
404
# File 'actionpack/lib/action_dispatch/http/response.rb', line 396

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