         presource = (pattern) -> pattern.test(pathname)
         domainOk = _.some(domains, pdomain)
         resourceOk = _.some(resources, presource)
+        parameters = [request, response, next]
+        matches = domainOk and resourceOk
+        @emit("matches", matches, parameters...)
         return domainOk and resourceOk
 
     # This method should process the already matched HTTP request.


_ = require "underscore"
logger = require "winston"
colors = require "colors"
util = require "util"
url = require "url"

        notRegexp = "The #{inspected} is not a valid regular expression"
        throw new Error(notRegexp) unless _.isRegExp(pattern)
        (@domains ?= []) push pattern unless duplicate
        (logger.info(associate.cyan) unless duplicate); this

    # This method determines whether the supplied HTTP request
    # matches this service. This is determined by examining the
