Replies: 1 comment
-
That's not what's documented at https://github.com/sinatra/sinatra/tree/fb76534810a1b3d6365eb8e2296bf627cfbef8de#filters
I don't think it makes sense to combine use of |
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
-
I noticed that streaming doesn't work well with filters or middleware. In the following snippet, both
stream block 1
andstream block 2
get printed twice. I think this somewhat defeats the purpose of streaming - for instance, if we want to stream something first which doesn't require computation, then stream something requiring computation next. Is there a way for everything in the stream block to only be run once overall? I'd expect middleware to only run once per write.Beta Was this translation helpful? Give feedback.
All reactions