okhttp / okhttp3 / Cache / urls

urls

fun urls():MutableIterator<String>

Returns an iterator over the URLs in this cache. This iterator doesn’t throw ConcurrentModificationException, but if new responses are added while iterating, their URLs will not be returned. If existing responses are evicted during iteration, they will be absent (unless they were already returned).

The iterator supports MutableIterator.remove. Removing a URL from the iterator evicts the corresponding response from the cache. Use this to evict selected responses.