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.10.1 sig/resolver.rbs