method
read_body_stream
rails latest stable - Class:
ActionDispatch::Request
read_body_stream()private
No documentation available.
# File actionpack/lib/action_dispatch/http/request.rb, line 469
def read_body_stream
body_stream.rewind if body_stream.respond_to?(:rewind)
return body_stream.read if headers.key?("Transfer-Encoding") # Read body stream until EOF if "Transfer-Encoding" is present
body_stream.read(content_length)
end