httpx/sig/transcoder/form.rbs
HoneyryderChuck 3f73d2e3ce multipart supported by default
the plugin was now moved to the transcoder layer, where it is available
from the get-go.
2023-09-20 17:57:41 +01:00

26 lines
709 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[[_ToS, form_nested_value | Multipart::multipart_nested_value]]
module Form
def self?.encode: (urlencoded_input form) -> (Encoder | Multipart::Encoder)
def self?.decode: (HTTPX::Response response) -> _Decoder
def self?.multipart?: (form_nested_value | Multipart::multipart_nested_value data) -> bool
class Encoder
extend Forwardable
include _Encoder
include _ToS
def content_type: () -> String
private
def initialize: (urlencoded_input form) -> untyped
end
end
end