Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
class ResponseTimer
def call(env, &block)
now = Time.now
@app.call(env, &block)
$stderr.puts({'X-Response-Took' => (Time.now - now)})
end
end
class FakeRack
def serve(application)
application.call({}) do |status, headers, body|
p :status => status
p :headers => headers
body.each do |string|
p string
end
body.close if body.respond_to?(:close)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.