Sha256: 7d1e2cacf5f1258d9d82bf256c880e16083d24a80326df7d6ff3504c33f32484
Contents?: true
Size: 1005 Bytes
Versions: 11
Compression:
Stored size: 1005 Bytes
Contents
module HTTPX 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 } 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
11 entries across 11 versions & 1 rubygems