mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-06 00:02:08 -04:00
23 lines
480 B
Plaintext
23 lines
480 B
Plaintext
module HTTPX::Transcoder
|
|
type form_value = string
|
|
|
|
type form_nested_value = form_value | _ToAry[form_value] | _ToHash[string, form_value]
|
|
|
|
type urlencoded_input = Enumerable[[string, form_nested_value], untyped]
|
|
|
|
module Form
|
|
def self?.encode: (urlencoded_input form) -> Encoder
|
|
|
|
class Encoder
|
|
include _Encoder
|
|
include _ToS
|
|
|
|
def content_type: () -> String
|
|
|
|
private
|
|
|
|
def initialize: (urlencoded_input form) -> untyped
|
|
end
|
|
end
|
|
end
|