Sha256: 9b98fb49d8dd2d9b8dfbae3378aab5ba3f5d93db07a3e533050c38afb38e6ad5

Contents?: true

Size: 451 Bytes

Versions: 28

Compression:

Stored size: 451 Bytes

Contents

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

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

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

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
httpx-1.3.4 sig/callbacks.rbs
httpx-1.3.3 sig/callbacks.rbs
httpx-1.3.2 sig/callbacks.rbs
httpx-1.3.1 sig/callbacks.rbs
httpx-1.3.0 sig/callbacks.rbs
httpx-1.2.6 sig/callbacks.rbs
httpx-1.2.4 sig/callbacks.rbs
httpx-1.2.3 sig/callbacks.rbs
httpx-1.2.2 sig/callbacks.rbs
httpx-1.2.1 sig/callbacks.rbs
httpx-1.2.0 sig/callbacks.rbs
httpx-1.1.5 sig/callbacks.rbs
httpx-1.1.4 sig/callbacks.rbs
httpx-1.1.3 sig/callbacks.rbs
httpx-1.1.2 sig/callbacks.rbs
httpx-1.1.1 sig/callbacks.rbs
httpx-1.1.0 sig/callbacks.rbs
httpx-1.0.2 sig/callbacks.rbs
httpx-0.24.7 sig/callbacks.rbs
httpx-1.0.1 sig/callbacks.rbs