Sha256: 8de0595184aef499ffe4f9c26cc77328074cd3cbb9d697aaf565dea104148685

Contents?: true

Size: 1.36 KB

Versions: 8

Compression:

Stored size: 1.36 KB

Contents

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

      DEFAULTS: Hash[Symbol, untyped]
      DNS_PORT: Integer

      @options: Options
      @ns_index: Integer
      @resolver_options: Hash[Symbol, untyped]
      @nameserver: String
      @_timeouts: Array[Numeric]
      @timeouts: Hash[String, Array[Numeric]]
      @_record_types: Hash[String, Hash["A" | "AAAA", dns_resource]]
      @connections: Array[Connection]
      @queries: Hash[String, Connection]
      @read_buffer: String
      @write_buffer: Buffer

      attr_reader state: Symbol

      def closed?: () -> bool

      def empty?: () -> bool

      def close: () -> void

      def call: () -> void

      def interests: () -> io_interests

      def <<: (Connection) -> void

      def timeout: () -> Numeric?

      private

      def initialize: (options) -> untyped

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

      def consume: () -> void

      def do_retry: () -> void

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

      def dwrite: () -> void

      def parse: (String) -> void

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

      def build_socket: () -> void

      def transition: (Symbol nextstate) -> void

      def handle_error: (NativeResolveError | StandardError) -> void
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
httpx-0.18.7 sig/resolver/native.rbs
httpx-0.18.6 sig/resolver/native.rbs
httpx-0.18.5 sig/resolver/native.rbs
httpx-0.18.4 sig/resolver/native.rbs
httpx-0.18.3 sig/resolver/native.rbs
httpx-0.18.2 sig/resolver/native.rbs
httpx-0.18.1 sig/resolver/native.rbs
httpx-0.18.0 sig/resolver/native.rbs