# File lib/mongrel.rb, line 665 665: def register(uri, handler, in_front=false) 666: script_name, path_info, handlers = @classifier.resolve(uri) 667: 668: if not handlers 669: @classifier.register(uri, [handler]) 670: else 671: if path_info.length == 0 or (script_name == Const::SLASH and path_info == Const::SLASH) 672: if in_front 673: handlers.unshift(handler) 674: else 675: handlers << handler 676: end 677: else 678: @classifier.register(uri, [handler]) 679: end 680: end 681: 682: handler.listener = self 683: end