private void truncate(int i) {
        for (int k = size() - 1; k >= i; k--) {
            originalNames.remove(k);
            names.remove(k);
            values.remove(k);
        }
    }
Removes all elements at and after the given index.
zuul-core/src/main/java/com/netflix/zuul/message/Headers.java