Sha256: 92e508a5d4f66d75b44aadb9e38b28b1385ac9f71c25d6df11dc1df262b9303b

Contents?: true

Size: 828 Bytes

Versions: 21

Compression:

Stored size: 828 Bytes

Contents

module HTTPX
  type ipaddr = IPAddr | String

  type resolver = Resolver::System | Resolver::Native | Resolver::HTTPS

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

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

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

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

    def self?.uncache: (String hostname) -> void

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

    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

21 entries across 21 versions & 1 rubygems

Version Path
httpx-0.15.4 sig/resolver.rbs
httpx-0.15.3 sig/resolver.rbs
httpx-0.15.2 sig/resolver.rbs
httpx-0.15.1 sig/resolver.rbs
httpx-0.15.0 sig/resolver.rbs
httpx-0.14.5 sig/resolver.rbs
httpx-0.14.4 sig/resolver.rbs
httpx-0.14.3 sig/resolver.rbs
httpx-0.14.2 sig/resolver.rbs
httpx-0.14.1 sig/resolver.rbs
httpx-0.14.0 sig/resolver.rbs
httpx-0.13.2 sig/resolver.rbs
httpx-0.13.1 sig/resolver.rbs
httpx-0.13.0 sig/resolver.rbs
httpx-0.12.0 sig/resolver.rbs
httpx-0.11.3 sig/resolver.rbs
httpx-0.11.2 sig/resolver.rbs
httpx-0.11.1 sig/resolver.rbs
httpx-0.11.0 sig/resolver.rbs
httpx-0.10.2 sig/resolver.rbs