instance method
reset_stream
Ruby on Rails 7.1.6
Since v7.1.6 PrivateSignature
reset_stream(body_stream)
No documentation comment.
Parameters
-
body_streamreq
Source
# 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
Defined in actionpack/lib/action_dispatch/http/request.rb line 481
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request