mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-05 00:02:38 -04:00
12 lines
198 B
Ruby
12 lines
198 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ResolverCachePurge
|
|
def purge_lookup_cache
|
|
@lookup_mutex.synchronize do
|
|
@lookups.clear
|
|
end
|
|
end
|
|
end
|
|
|
|
HTTPX::Resolver.extend(ResolverCachePurge)
|