lib/httpx/resolver/system.rb in httpx-0.17.0 vs lib/httpx/resolver/system.rb in httpx-0.18.0
- old
+ new
@@ -10,9 +10,11 @@
RESOLV_ERRORS = [Resolv::ResolvError,
Resolv::DNS::Requester::RequestError,
Resolv::DNS::EncodeError,
Resolv::DNS::DecodeError].freeze
+ attr_reader :state
+
def initialize(options)
@options = Options.new(options)
@resolver_options = @options.resolver_options
@state = :idle
resolv_options = @resolver_options.dup