Sha256: b572e6d43bf723f1e1e069b00a7335d62f0fa5720a8f3f140f0a98a23bd8baf6

Contents?: true

Size: 451 Bytes

Versions: 50

Compression:

Stored size: 451 Bytes

Contents

module HTTPX
  interface _Callable
    def call: (*untyped) -> void
  end

  module Callbacks
    def on: (Symbol) { (*untyped) -> void } -> void
    def once: (Symbol) { (*untyped) -> void } -> void
    def only: (Symbol) { (*untyped) -> void } -> void
    def emit: (Symbol, *untyped) -> void

    def callbacks_for?: (Symbol) -> bool
    def callbacks: () -> Hash[Symbol, Array[_Callable]]
                  | (Symbol) -> Array[_Callable]
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
httpx-0.23.4 sig/callbacks.rbs
httpx-0.23.3 sig/callbacks.rbs
httpx-0.23.2 sig/callbacks.rbs
httpx-0.23.1 sig/callbacks.rbs
httpx-0.23.0 sig/callbacks.rbs
httpx-0.22.5 sig/callbacks.rbs
httpx-0.22.4 sig/callbacks.rbs
httpx-0.22.3 sig/callbacks.rbs
httpx-0.22.2 sig/callbacks.rbs
httpx-0.22.1 sig/callbacks.rbs
httpx-0.22.0 sig/callbacks.rbs
httpx-0.21.1 sig/callbacks.rbs
httpx-0.21.0 sig/callbacks.rbs
httpx-0.20.5 sig/callbacks.rbs
httpx-0.20.4 sig/callbacks.rbs
httpx-0.20.3 sig/callbacks.rbs
httpx-0.20.2 sig/callbacks.rbs
httpx-0.20.1 sig/callbacks.rbs
httpx-0.20.0 sig/callbacks.rbs
httpx-0.19.8 sig/callbacks.rbs