lib/httpx/resolver.rb in httpx-0.10.2 vs lib/httpx/resolver.rb in httpx-0.11.0
- old
+ new
@@ -1,15 +1,18 @@
# frozen_string_literal: true
require "resolv"
-require "httpx/resolver/resolver_mixin"
-require "httpx/resolver/system"
-require "httpx/resolver/native"
-require "httpx/resolver/https"
module HTTPX
module Resolver
extend Registry
+
+ RESOLVE_TIMEOUT = 5
+
+ require "httpx/resolver/resolver_mixin"
+ require "httpx/resolver/system"
+ require "httpx/resolver/native"
+ require "httpx/resolver/https"
register :system, System
register :native, Native
register :https, HTTPS