class Rack::Timing::End

Public Instance Methods

call(env) click to toggle source

This middleware should run as late in the stack as possible.

# File lib/timing/end.rb, line 5
def call(env)
  env["RACK_IN_END"] = time_ms
  status, headers, response = @app.call(env)
  env["RACK_OUT_START"] = time_ms
  [status, headers, response]
end