Class: Rack::P3p

Inherits:
Object
  • Object
show all
Defined in:
lib/rack-p3p.rb

Constant Summary collapse

POLICY =
'CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"'

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ P3p

Returns a new instance of P3p.



6
7
8
# File 'lib/rack-p3p.rb', line 6

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



10
11
12
13
# File 'lib/rack-p3p.rb', line 10

def call(env)
  response = @app.call(env)
  insert_p3p(response)
end