# File lib/sinatra/async/test.rb, line 33 def request(uri, env) env['async.callback'] = lambda { |r| s,h,b = *r; handle_last_response(uri, env, s,h,b) } env['async.close'] = AsyncCloser.new catch(:async) { super } @last_response ||= Rack::MockResponse.new(-1, {}, [], env["rack.errors"].flush) end