public boolean removeIf(Predicate<? super Map.Entry<HeaderName, String>> filter) {
        Objects.requireNonNull(filter, "filter");
        boolean removed = false;
        int w = 0;
        for (int r = 0; r < size(); r++) {
            if (filter.test(new SimpleImmutableEntry<>(new HeaderName(originalName(r), name(r)), value(r)))) {
                removed = true;
            } else {
                originalName(w, originalName(r));
                name(w, name(r));
                value(w, value(r));
                w++;
            }
        }
        truncate(w);
        return removed;
    }
Removes all header entries that match the given predicate.   Do not access the header list from inside the
{@link Predicate#test} body.

@return if any elements were removed.
zuul-core/src/main/java/com/netflix/zuul/message/Headers.java