Module: HTTPX::Resolver::ResolverMixin

Includes:
Callbacks, Loggable
Included in:
HTTPS, Native, System
Defined in:
lib/httpx/resolver/resolver_mixin.rb

Constant Summary collapse

CHECK_IF_IP =
proc do |name|
  begin
    IPAddr.new(name)
    true
  rescue ArgumentError
    false
  end
end

Constants included from Loggable

Loggable::COLORS

Instance Method Summary collapse

Methods included from Loggable

#log, #log_exception

Methods included from Callbacks

#emit, #on, #once

Instance Method Details

#uncache(connection) ⇒ Object



21
22
23
24
25
# File 'lib/httpx/resolver/resolver_mixin.rb', line 21

def uncache(connection)
  hostname = hostname || @queries.key(connection) || connection.origin.host
  Resolver.uncache(hostname)
  @_record_types[hostname].shift
end