Sha256: ca9257deb5a8db40b3291d9c784c0ef9d1dc13cc57a99bafe947ee4c6318822a

Contents?: true

Size: 1.15 KB

Versions: 4

Compression:

Stored size: 1.15 KB

Contents

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

      DEFAULTS: Hash[Symbol, untyped]
      DNS_PORT: Integer

      @family: ip_family
      @options: Options
      @ns_index: Integer
      @nameserver: String
      @_timeouts: Array[Numeric]
      @timeouts: Hash[String, Array[Numeric]]
      @connections: Array[Connection]
      @read_buffer: String
      @write_buffer: Buffer

      attr_reader state: Symbol

      def call: () -> void

      def interests: () -> io_interests

      def <<: (Connection) -> void

      def timeout: () -> Numeric?

      private

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

      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

4 entries across 4 versions & 1 rubygems

Version Path
httpx-0.19.3 sig/resolver/native.rbs
httpx-0.19.2 sig/resolver/native.rbs
httpx-0.19.1 sig/resolver/native.rbs
httpx-0.19.0 sig/resolver/native.rbs