sig/transcoder/form.rbs in httpx-0.24.7 vs sig/transcoder/form.rbs in httpx-1.0.0
- old
+ new
@@ -1,19 +1,21 @@
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]]
+ type urlencoded_input = Enumerable[[_ToS, form_nested_value | Multipart::multipart_nested_value]]
module Form
- def self?.encode: (urlencoded_input form) -> Encoder
+ 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 bytesize: () -> Integer
def content_type: () -> String
private