sig/transcoder/json.rbs in httpx-0.20.5 vs sig/transcoder/json.rbs in httpx-0.21.0
- old
+ new
@@ -3,10 +3,13 @@
JSON_REGEX: Regexp
def self?.encode: (_ToJson json) -> Encoder
def self?.decode: (HTTPX::Response response) -> _Decoder
+ def self?.json_load: (string source, ?json_options) -> untyped
+ def self?.json_dump: (_ToJson obj, *untyped) -> String
+
class Encoder
extend Forwardable
include _Encoder
include _ToS
@@ -15,9 +18,9 @@
def content_type: () -> String
private
- def initialize: (_ToJson json) -> untyped
+ def initialize: (_ToJson json) -> void
end
end
end