instance method read_body_stream

Ruby on Rails 8.0.4

Since v7.1.6 Private

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

read_body_stream()

No documentation comment.

Source
# File actionpack/lib/action_dispatch/http/request.rb, line 509
      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 509 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::Request

Type at least 2 characters to search.

↑↓ navigate · open · esc close