class ActionDispatch::Response::RackBody
Constants
- BODY_METHODS
Attributes
Public Class Methods
Source
# File lib/action_dispatch/http/response.rb, line 531 def initialize(response) @response = response end
Public Instance Methods
Source
# File lib/action_dispatch/http/response.rb, line 565 def call(*arguments, &block) @response.stream.call(*arguments, &block) end
Source
# File lib/action_dispatch/http/response.rb, line 537 def close # Rack "close" maps to Response#abort, and **not** Response#close (which is used # when the controller's finished writing) @response.abort end
Source
# File lib/action_dispatch/http/response.rb, line 561 def each(*args, &block) @response.each(*args, &block) end
Source
# File lib/action_dispatch/http/response.rb, line 549 def respond_to?(method, include_private = false) if BODY_METHODS.key?(method) @response.stream.respond_to?(method) else super end end
Calls superclass method
Source
# File lib/action_dispatch/http/response.rb, line 557 def to_ary @response.stream.to_ary end
Source
# File lib/action_dispatch/http/response.rb, line 569 def to_path @response.stream.to_path end