Class: Rack::Nocache

Inherits:
Object
  • Object
show all
Defined in:
lib/alf/repl/nocache.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Nocache

Returns a new instance of Nocache.



4
5
6
# File 'lib/alf/repl/nocache.rb', line 4

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



8
9
10
11
# File 'lib/alf/repl/nocache.rb', line 8

def call(env)
  status, headers, body = @app.call(patch_request_headers(env))
  [status, patch_response_headers(headers), body]
end