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