Sha256: 3178b0cd8fbf7b99c2327e31bec4232a04c10edbdbf9ede797af1d144cad740b

Contents?: true

Size: 1012 Bytes

Versions: 20

Compression:

Stored size: 1012 Bytes

Contents

module HTTPX
  type ipaddr = IPAddr | String

  module Resolver
    extend Registry[Symbol, Class]

    RESOLVE_TIMEOUT: Integer | Float

    @lookup_mutex: Thread::Mutex

    type dns_resource = singleton(Resolv::DNS::Resource)

    type dns_result = { "name" => String, "TTL" => Numeric, "alias" => String }
                    | { "name" => String, "TTL" => Numeric, "data" => String }


    def nolookup_resolve: (String hostname) -> Array[IPAddr]

    def ip_resolve: (String hostname) -> Array[IPAddr]?

    def system_resolve: (String hostname) -> Array[IPAddr]?

    def self?.cached_lookup: (String hostname) -> Array[IPAddr]?

    def self?.cached_lookup_set: (String hostname, ip_family family, Array[dns_result] addresses) -> void

    def self?.lookup: (String hostname, Numeric ttl) -> Array[IPAddr]?

    def self?.generate_id: () -> Integer

    def self?.encode_dns_query: (String hostname, ?type: dns_resource) -> String

    def self?.decode_dns_answer: (String) -> Array[dns_result]
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
httpx-0.22.2 sig/resolver.rbs
httpx-0.22.1 sig/resolver.rbs
httpx-0.22.0 sig/resolver.rbs
httpx-0.21.1 sig/resolver.rbs
httpx-0.21.0 sig/resolver.rbs
httpx-0.20.5 sig/resolver.rbs
httpx-0.20.4 sig/resolver.rbs
httpx-0.20.3 sig/resolver.rbs
httpx-0.20.2 sig/resolver.rbs
httpx-0.20.1 sig/resolver.rbs
httpx-0.20.0 sig/resolver.rbs
httpx-0.19.8 sig/resolver.rbs
httpx-0.19.7 sig/resolver.rbs
httpx-0.19.6 sig/resolver.rbs
httpx-0.19.5 sig/resolver.rbs
httpx-0.19.4 sig/resolver.rbs
httpx-0.19.3 sig/resolver.rbs
httpx-0.19.2 sig/resolver.rbs
httpx-0.19.1 sig/resolver.rbs
httpx-0.19.0 sig/resolver.rbs