Method: Rack::CopyMachine#_call

Defined in:
lib/rack/copy_machine.rb

#_call(env) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/rack/copy_machine.rb', line 10

def _call(env)
  @request = Rack::Request.new(env)

  status, headers, body = @app.call(env)
  @response = Rack::Response.new(body, status, headers)
  inject_copy_notification

  @response.finish
end