Sha256: 64f8d7981af714653179cd9679438971a0a4dc244c2515e42cea084ba2986938

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

module HTTPX
  module Resolver
    class Resolver
      include Callbacks
      include Loggable

      RECORD_TYPES: Hash[Integer, singleton(Resolv::DNS::Resource)]

      attr_reader family: ip_family?

      @record_type: singleton(Resolv::DNS::Resource)
      @options: Options
      @resolver_options: Hash[Symbol, untyped]
      @queries: Hash[String, Connection]
      @system_resolver: Resolv::Hosts

      def close: () -> void

      def closed?: () -> bool

      def empty?: () -> bool

      def emit_addresses: (Connection connection, ip_family family, Array[IPAddr]) -> void

      private

      def emit_resolved_connection: (Connection connection, Array[IPAddr] addresses) -> void

      def initialize: (ip_family? family, options options) -> void

      def early_resolve: (Connection connection, ?hostname: String) -> void

      def emit_resolve_error: (Connection connection, ?String hostname, ?StandardError) -> void

      def resolve_error: (String hostname, ?StandardError?) -> ResolveError
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
httpx-0.22.5 sig/resolver/resolver.rbs
httpx-0.22.4 sig/resolver/resolver.rbs
httpx-0.22.3 sig/resolver/resolver.rbs