instance method
reset_stream
Ruby on Rails 8.1.2
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 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