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.19.7 sig/callbacks.rbs
httpx-0.19.6 sig/callbacks.rbs
httpx-0.19.5 sig/callbacks.rbs
httpx-0.19.4 sig/callbacks.rbs
httpx-0.19.3 sig/callbacks.rbs
httpx-0.19.2 sig/callbacks.rbs
httpx-0.19.1 sig/callbacks.rbs
httpx-0.19.0 sig/callbacks.rbs
httpx-0.18.7 sig/callbacks.rbs
httpx-0.18.6 sig/callbacks.rbs
httpx-0.18.5 sig/callbacks.rbs
httpx-0.18.4 sig/callbacks.rbs
httpx-0.18.3 sig/callbacks.rbs
httpx-0.18.2 sig/callbacks.rbs
httpx-0.18.1 sig/callbacks.rbs
httpx-0.18.0 sig/callbacks.rbs
httpx-0.17.0 sig/callbacks.rbs
httpx-0.16.1 sig/callbacks.rbs
httpx-0.16.0 sig/callbacks.rbs
httpx-0.15.4 sig/callbacks.rbs