Sha256: 501cfeb8a54509708aa3545a871871b982298649eddb335cbf8449230f9835d9
Contents?: true
Size: 436 Bytes
Versions: 2
Compression:
Stored size: 436 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, body = @app.call(env) puts "Middleware called. Status: #{status}, Headers: #{headers}" body += "CAS Client Called!!!" headers["Content-Length"] = body.length.to_s [status, headers, body] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cas-client-0.1.2.pre.p6 | lib/cas/client/rack.rb |
cas-client-0.1.2.pre.p5 | lib/cas/client/rack.rb |