method
read_body_stream
v8.0.0 -
Show latest stable
- Class:
ActionDispatch::Request
read_body_stream()private
No documentation available.
# File actionpack/lib/action_dispatch/http/request.rb, line 508
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