sig/resolver.rbs in httpx-0.15.4 vs sig/resolver.rbs in httpx-0.16.0
- old
+ new
@@ -2,9 +2,16 @@
type ipaddr = IPAddr | String
type resolver = Resolver::System | Resolver::Native | Resolver::HTTPS
module Resolver
+ RESOLVE_TIMEOUT: Integer | Float
+
+ def self.registry: (Symbol tag) -> Class
+ | () -> Hash[Symbol, Class]
+
+ def self.register: (Symbol tag, Class handler) -> void
+
type dns_resource = singleton(Resolv::DNS::Resource)
type dns_result = { "name" => String, "TTL" => Numeric, "alias" => String }
| { "name" => String, "TTL" => Numeric, "data" => String }
\ No newline at end of file