class T1000::Middleware

Public Instance Methods

cache() click to toggle source
# File lib/t-1000/middleware.rb, line 10
def cache
  T1000.cache
end
call(env) click to toggle source
Calls superclass method
# File lib/t-1000/middleware.rb, line 14
def call(env)
  req          = Request.new(env)
  transactions = TransactionList.for_ip(req.ip)
  super.tap do |status, headers, *|
    transaction = Transaction.new req, Response.new(status, headers)
    transactions.push transaction
  end
end