-
Notifications
You must be signed in to change notification settings - Fork 1.6k
After/between request callback #1060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@maxnordlund I think Rack::BodyProxy.new(body) do
# will be executed after response body has been written to the client
end |
Cool, sadly I'm not coding any Ruby/Rails at the moment. But I hope this helps whoever comes by next. |
Puma supports this via |
Uh oh!
There was an error while loading. Please reload this page.
Hi, I couldn't find an issue with this so here it goes.
I would like to run some code after the request has been flushed to the client but before the next request. Essentially be able to queue up some work per request without affecting the load time. An example is to defer some logging/profiling, or send an email.
Is this possible to do this already? Or is it possible to add? Thoughts and feedback more then welcome.
The text was updated successfully, but these errors were encountered: