Sha256: 31a0a5d0a31256bfc5b402ae9d918f108b22549134bc51a581718d3d2310d476

Contents?: true

Size: 1.02 KB

Versions: 9

Compression:

Stored size: 1.02 KB

Contents

module HTTPX
  module Resolver
    class Resolver
      include Callbacks
      include Loggable

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

      @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], ?bool early_resolve) -> 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 | ResolveTimeoutError)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
httpx-1.1.5 sig/resolver/resolver.rbs
httpx-1.1.4 sig/resolver/resolver.rbs
httpx-1.1.3 sig/resolver/resolver.rbs
httpx-1.1.2 sig/resolver/resolver.rbs
httpx-1.1.1 sig/resolver/resolver.rbs
httpx-1.1.0 sig/resolver/resolver.rbs
httpx-1.0.2 sig/resolver/resolver.rbs
httpx-1.0.1 sig/resolver/resolver.rbs
httpx-1.0.0 sig/resolver/resolver.rbs