Replies: 3 comments 7 replies
-
If you need rewindable input in Rack 3, use |
Beta Was this translation helpful? Give feedback.
6 replies
-
Okay, so the correct way for a middleware to handle this would be:
Now it has both the input and the downstream middleware can also read it. However, this has to be done carefully - i.e. if the input was expected to be streaming - like a websocket connection or a huge upload (multi-GB), etc. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Same problem in ruby-grape/grape#2388, still discussing the best fix. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question comes from Rollbar issue rollbar/rollbar-gem#1106
As
#rewind
has gone in 3.0 there are some issues:I propose one hack to rewind body but it looks fragile if internals change
Any advises ?
Beta Was this translation helpful? Give feedback.
All reactions