Sha256: 5ec0565a2f3ed91f82e3d9d0049464489123c4a825c26576d0268a726c100670

Contents?: true

Size: 1.33 KB

Versions: 10

Compression:

Stored size: 1.33 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: () -> untyped

    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: (Resolver::Resolver | Connection connection) -> void

    def deselect_connection: (Resolver::Resolver | Connection connection) -> void

    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

10 entries across 10 versions & 1 rubygems

Version Path
httpx-0.20.0 sig/pool.rbs
httpx-0.19.8 sig/pool.rbs
httpx-0.19.7 sig/pool.rbs
httpx-0.19.6 sig/pool.rbs
httpx-0.19.5 sig/pool.rbs
httpx-0.19.4 sig/pool.rbs
httpx-0.19.3 sig/pool.rbs
httpx-0.19.2 sig/pool.rbs
httpx-0.19.1 sig/pool.rbs
httpx-0.19.0 sig/pool.rbs