mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-05 00:02:38 -04:00
14 lines
319 B
Plaintext
14 lines
319 B
Plaintext
module HTTPX::Registry[unchecked out T, unchecked out V]
|
|
class Error < HTTPX::Error
|
|
end
|
|
|
|
# type registrable = Symbol | String | Class
|
|
|
|
def self.registry: [T, V] (T) -> Class
|
|
| [T, V] () -> Hash[T, V]
|
|
|
|
def self.register: [T, V] (T tag, V handler) -> void
|
|
|
|
def registry: (?T tag) -> V
|
|
end
|