Sha256: b9685615dc78fd4ae1d7c9788e9af6ed5a4245e3d9507b34ef5f7dd031e38f76

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 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

      alias terminate close

      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, bool early_resolve) -> 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

1 entries across 1 versions & 1 rubygems

Version Path
httpx-1.3.0 sig/resolver/resolver.rbs