class ActionDispatch::Reloader

def self.to_cleanup(*args, &block)

complete (after #close is called on the response body).
Add a cleanup callback. Cleanup callbacks are run after each request is
def self.to_cleanup(*args, &block)
  set_callback(:cleanup, *args, &block)
end