instance method
read_body_stream
Ruby on Rails 8.1.2
Since v7.1.6 PrivateSignature
read_body_stream()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/http/request.rb, line 514
def read_body_stream
if body_stream
reset_stream(body_stream) do
if has_header?(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 514
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request