# File lib/camping/server.rb, line 165
    def call(env)
      reload!
      apps = @reloader.apps

      case apps.length
      when 0
        index_page(apps)
      when 1
        apps.values.first.call(env)
      else
        apps.each do |name, app|
          mount = name.to_s.downcase
          case env["PATH_INFO"]
          when %r{^/#{mount}}
            env["SCRIPT_NAME"] = env["SCRIPT_NAME"] + $&
            env["PATH_INFO"] = $'
            return app.call(env)
          when %r{^/code/#{mount}}
            return [200, {'Content-Type' => 'text/plain', 'X-Sendfile' => @reloader.script(app).file}, []]
          end
        end
        
        index_page(apps)
      end
    end