    # File lib/mongrel/handlers.rb, line 456
        def process(request, response)
          unless @pattern
            response.socket.write(Mongrel::Const::REDIRECT % @replacement)
          else
            if @block
              new_path = request.params['REQUEST_URI'].gsub(@pattern, &@block)
            else
              new_path = request.params['REQUEST_URI'].gsub(@pattern, @replacement)
            end
            response.socket.write(Mongrel::Const::REDIRECT % new_path)
          end
        end