Sha256: 3aed0a81b137d75732dd1d82612da7a11c4344f9de625d9990d9d1ffa0b955f0

Contents?: true

Size: 1.62 KB

Versions: 6

Compression:

Stored size: 1.62 KB

Contents

module HTTPX
  module Resolver
    class Native < Resolver
      extend Forwardable
      include _ToIO

      DEFAULTS: Hash[Symbol, untyped]
      DNS_PORT: Integer

      attr_reader family: ip_family

      @options: Options
      @ns_index: Integer
      @nameserver: Array[String]
      @socket_type: :udp | :tcp
      @ndots: Integer
      @start_timeout: Float?
      @search: Array[String]
      @_timeouts: Array[Numeric]
      @timeouts: Hash[String, Array[Numeric]]
      @connections: Array[Connection]
      @read_buffer: String
      @write_buffer: Buffer
      @large_packet: Buffer?
      @io: UDP | TCP

      attr_reader state: Symbol

      def call: () -> void

      def interests: () -> (:r | :w | nil)

      def <<: (Connection) -> void

      def timeout: () -> Numeric?

      def handle_socket_timeout: (Numeric interval) -> void

      private

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

      def calculate_interests: () -> (:r | :w | nil)

      def consume: () -> void

      def do_retry: (?Numeric? loop_time) -> void

      def dread: (Integer) -> void
               | () -> void

      def dwrite: () -> void

      def parse: (String) -> void

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

      def generate_candidates: (String) -> Array[String]

      def build_socket: () -> (UDP | TCP)

      def downgrade_socket: () -> void

      def transition: (Symbol nextstate) -> void

      def handle_error: (NativeResolveError | StandardError) -> void

      def reset_hostname: (String hostname, ?connection: Connection, ?reset_candidates: bool) -> void
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
httpx-1.3.4 sig/resolver/native.rbs
httpx-1.3.3 sig/resolver/native.rbs
httpx-1.3.2 sig/resolver/native.rbs
httpx-1.3.1 sig/resolver/native.rbs
httpx-1.3.0 sig/resolver/native.rbs
httpx-1.2.6 sig/resolver/native.rbs