method

reset_stream

rails latest stable - Class: ActionDispatch::Request

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

reset_stream(body_stream)
private

No documentation available.

# File actionpack/lib/action_dispatch/http/request.rb, line 481
      def reset_stream(body_stream)
        if body_stream.respond_to?(:rewind)
          body_stream.rewind

          content = yield

          body_stream.rewind

          content
        else
          yield
        end
      end