instance method reset_stream

Ruby on Rails 8.1.2

Since v7.1.6 Private

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

Signature

reset_stream(body_stream)

No documentation comment.

Parameters

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

          content = yield

          body_stream.rewind

          content
        else
          yield
        end
      end

Defined in actionpack/lib/action_dispatch/http/request.rb line 526 · 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