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.15.3 sig/callbacks.rbs
httpx-0.15.2 sig/callbacks.rbs
httpx-0.15.1 sig/callbacks.rbs
httpx-0.15.0 sig/callbacks.rbs
httpx-0.14.5 sig/callbacks.rbs
httpx-0.14.4 sig/callbacks.rbs
httpx-0.14.3 sig/callbacks.rbs
httpx-0.14.2 sig/callbacks.rbs
httpx-0.14.1 sig/callbacks.rbs
httpx-0.14.0 sig/callbacks.rbs