instance method
read_body_stream
Ruby on Rails 7.1.6
Since v7.1.6 PrivateSignature
read_body_stream()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/http/request.rb, line 469
def read_body_stream
if body_stream
reset_stream(body_stream) do
if headers.key?("Transfer-Encoding")
body_stream.read # Read body stream until EOF if "Transfer-Encoding" is present
else
body_stream.read(content_length)
end
end
end
end
Defined in actionpack/lib/action_dispatch/http/request.rb line 469
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request