Sha256: b8fcd9bb3564c6a7a8beed806921855b07a251d76756c0caa24d55f51f8ff19a

Contents?: true

Size: 1.43 KB

Versions: 7

Compression:

Stored size: 1.43 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]
    @eden_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

7 entries across 7 versions & 1 rubygems

Version Path
httpx-1.0.2 sig/pool.rbs
httpx-0.24.7 sig/pool.rbs
httpx-1.0.1 sig/pool.rbs
httpx-1.0.0 sig/pool.rbs
httpx-0.24.6 sig/pool.rbs
httpx-0.24.5 sig/pool.rbs
httpx-0.24.4 sig/pool.rbs