Sha256: 7ecfb19ef74b1a024ade81a082a7f6b7ff3135c0d31918e1f23df804e38193ef

Contents?: true

Size: 1019 Bytes

Versions: 8

Compression:

Stored size: 1019 Bytes

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
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
httpx-0.24.7 sig/resolver/resolver.rbs
httpx-0.24.6 sig/resolver/resolver.rbs
httpx-0.24.5 sig/resolver/resolver.rbs
httpx-0.24.4 sig/resolver/resolver.rbs
httpx-0.24.3 sig/resolver/resolver.rbs
httpx-0.24.2 sig/resolver/resolver.rbs
httpx-0.24.1 sig/resolver/resolver.rbs
httpx-0.24.0 sig/resolver/resolver.rbs