             .first
             .map { (handler, var parameters) -> (String, Parameters) in
                 for item in queryItems { parameters[item.0] = item.1 }
-                return handler!(path, parameters)
+                return handler!(path, parameters) { (_, __) in }
         }
         
         let route = routes

            self.routes.append(.Proxy(self.matcher(pattern, handler: handler)))
        }
    }
    public func map(pattern: String, handler: RouteHandler) -> Void {
        dispatch_barrier_async(accessQueue) {
            self.routes.append(.Route(self.matcher(pattern, handler: handler)))

import Foundation

public class Routing {
    public typealias ProxyHandler = (String, Parameters, Next) -> (String, Parameters)
    public typealias Next = (String, Parameters) -> Void
    public typealias RouteHandler = (Parameters, Completed) -> Void
    public typealias Parameters = [String: String]
    public typealias Completed = () -> Void
    
    private enum RouteType {
        case Proxy((String) -> (ProxyHandler?, Parameters))
