    # File lib/rack/mock.rb, line 64
        def request(method="GET", uri="", opts={})
          env = self.class.env_for(uri, opts.merge(:method => method))

          if opts[:lint]
            app = Rack::Lint.new(@app)
          else
            app = @app
          end

          errors = env["rack.errors"]
          status, headers, body  = app.call(env)
          MockResponse.new(status, headers, body, errors)
        ensure
          body.close if body.respond_to?(:close)
        end