mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
10 lines
237 B
Plaintext
10 lines
237 B
Plaintext
module HTTPX::Registry[T, V]
|
|
# type registrable = Symbol | String | Class
|
|
|
|
def self.registry: (T tag) -> Class
|
|
| () -> Hash[K, V]
|
|
def self.register: (T tag, V handler) -> void
|
|
|
|
def registry: (?T tag) -> V
|
|
end
|