     response.write "Not found"
     response.end()
 
-  tryDispatchInRoute: (request, response, route) ->
+  dispatchInRoute: (request, response, route) ->
     uthis = this
 
     if route.log?

      target = "#{protocol}://#{route.forward.host}:#{route.forward.port}"
      options = {
        target: target,
        secure: false,
        ssl: {}
      }

      if route.delay?
        @printCallback "Delaying by #{route.delay} seconds"

        cbk = () ->
          uthis.proxy.web request, response, options

        @setTimeoutCallback cbk, (route.delay) * 1000
      else
        @proxy.web request, response, options

      return true

    return false

  dispatch: (request, response) ->
    path = request.url.substring(1)

    matchedRoutes = this.findMatchingRoutes {path: path, \
                                             method: request.method}
    if matchedRoutes.length > 0
      @printCallback "Matched #{matchedRoutes.length} routes, will dispatch in first one"
      for route in matchedRoutes
        @printCallback "In route #{route.key}"
        this.printRoute route
        return this.dispatchInRoute(request, response, route)

    @printCallback "No idea how to process the request!"
    this.dispatchNoRoutes request, response
