Sha256: 0e04504ce6d475e842a1e52f7be5be8b62d43861be41e41735b3fb4c4ada0495
Contents?: true
Size: 489 Bytes
Versions: 3
Compression:
Stored size: 489 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}" response = rack_body.body response += "CAS Client Called!!!" headers["Content-Length"] = response.length.to_s [status, headers, [response]] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cas-client-0.1.2.pre.p12 | lib/cas/client/rack.rb |
cas-client-0.1.2.pre.p11 | lib/cas/client/rack.rb |
cas-client-0.1.2.pre.p10 | lib/cas/client/rack.rb |