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