Sha256: 34fba95df0cc5d6ce724356b576e5bee80eed6c293f8d676fb67aa26119eaa4d

Contents?: true

Size: 1.39 KB

Versions: 12

Compression:

Stored size: 1.39 KB

Contents

module HTTPX
  class Pool
    type resolver_manager = Resolver::Multi | Resolver::System

    @resolvers: Hash[Class, resolver_manager]
    @timers: Timers
    @selector: Selector
    @connections: Array[Connection]
    @connected_connections: Integer

    def empty?: () -> void

    def next_tick: () -> void

    def close: (?Array[Connection] connections) -> void

    def init_connection: (Connection connection, Options options) -> void

    def find_connection: (URI::Generic uri, Options options) -> Connection?

    def deactivate: (*Array[Connection]) -> void

    private

    def initialize: () -> void

    def try_clone_connection: (Connection connection, Integer? family) -> Connection

    def resolve_connection: (Connection) -> void

    def on_resolver_connection: (Connection) -> void

    def on_resolver_error: (Connection, StandardError) -> void

    def on_resolver_close: (Resolver::Resolver) -> void

    def register_connection: (Connection) -> void

    def unregister_connection: (Connection) -> void

    def select_connection: (Selector::selectable) -> void

    def deselect_connection: (Selector::selectable) -> Selector::selectable?

    def coalesce_connections: (Connection coalescable, Connection coalescing) -> void

    def next_timeout: () -> (Integer | Float | nil)

    def find_resolver_for: (Connection) { (Resolver::Resolver resolver) -> void } -> resolver_manager
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
httpx-0.24.3 sig/pool.rbs
httpx-0.24.2 sig/pool.rbs
httpx-0.24.1 sig/pool.rbs
httpx-0.24.0 sig/pool.rbs
httpx-0.23.4 sig/pool.rbs
httpx-0.23.3 sig/pool.rbs
httpx-0.23.2 sig/pool.rbs
httpx-0.23.1 sig/pool.rbs
httpx-0.23.0 sig/pool.rbs
httpx-0.22.5 sig/pool.rbs
httpx-0.22.4 sig/pool.rbs
httpx-0.22.3 sig/pool.rbs