Sha256: 4ba6dca9d0cd69c1937e3e473a234b083c739dab6d70be0bee95906fe11ceed2
Contents?: true
Size: 411 Bytes
Versions: 5
Compression:
Stored size: 411 Bytes
Contents
require 'vizsla/timer' require 'vizsla/puppet_master' module Vizsla class Middleware def initialize(app) @app = app end def call(env) dup.__call(env) end def __call(env) timer = Timer.new timer.start! status, headers, response = @app.call(env) timer.stop! PuppetMaster.new(timer).process [status, headers, response] end end end
Version data entries
5 entries across 5 versions & 1 rubygems