If you are letting the request go through the Rails stack already I
don’t see how you can make the response go any faster either way. If
you were catching the request in the middleware on its way to the
Rails stack and returned right away without going through Rails then
it would be a different story and the response would be faster.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.