# File lib/mongrel.rb, line 768 768: def register(uri, handler, in_front=false) 769: script_name, path_info, handlers = @classifier.resolve(uri) 770: 771: if not handlers 772: @classifier.register(uri, [handler]) 773: else 774: if path_info.length == 0 or (script_name == Const::SLASH and path_info == Const::SLASH) 775: if in_front 776: handlers.unshift(handler) 777: else 778: handlers << handler 779: end 780: else 781: @classifier.register(uri, [handler]) 782: end 783: end 784: 785: handler.listener = self 786: end