Sha256: 0d11e92dffe68f5a250e0cb3a566a90a615c1da29d5b69656b40df24cebea2a1
Contents?: true
Size: 456 Bytes
Versions: 2
Compression:
Stored size: 456 Bytes
Contents
module Cas module Client class Rack def initialize(app) @app = app end def call(env) puts "CAS Client Called from Rack!" status, headers, rack_body = @app.call(env) puts "Middleware called. Status: #{status}, Headers: #{headers}" rack_body.body += "CAS Client Called!!!" headers["Content-Length"] = body.length.to_s [status, headers, rack_body] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cas-client-0.1.2.pre.p9 | lib/cas/client/rack.rb |
cas-client-0.1.2.pre.p8 | lib/cas/client/rack.rb |