sig/resolver/https.rbs in httpx-0.18.7 vs sig/resolver/https.rbs in httpx-0.19.0

- old
+ new

@@ -1,50 +1,38 @@ module HTTPX module Resolver - class HTTPS - include ResolverMixin - include _ToIO + class HTTPS < Resolver + NAMESERVER: String + DEFAULTS: Hash[Symbol, untyped] + FAMILY_TYPES: Hash[singleton(Resolv::DNS::Resource), String] + + @family: ip_family @options: Options - @resolver_options: Hash[Symbol, untyped] - @_record_types: Hash[String, Hash["A" | "AAAA", dns_resource]] - @queries: Hash[String, Connection] @requests: Hash[Request, Connection] @connections: Array[Connection] - @uri: URI::HTTPS + @uri: URI::Generic @uri_addresses: Array[String]? + @resolver: Resolv::DNS + @resolver_connection: Connection + attr_writer pool: Pool + def <<: (Connection) -> void - def timeout: () -> Numeric? - - def closed?: () -> bool - - def empty?: () -> bool - - def close: () -> void - - def call: () -> void - - def interests: () -> io_interests? - private - def initialize: (options) -> untyped + def initialize: (ip_family family, options options) -> void - def pool: () -> Pool - def resolver_connection: () -> Connection - def resolve: (Connection, String hostname) -> void - | (Connection) -> void - | () -> void + def resolve: (?Connection connection, ?String? hostname) -> void def on_response: (Request, response) -> void - def response: (Response) -> void + def parse: (Response response) -> void - def build_request: (String hostname, "A" | "AAAA") -> Request + def build_request: (String hostname) -> Request def decode_response_body: (Response) -> Array[dns_result] end end end \ No newline at end of file