sig/response.rbs in httpx-0.16.1 vs sig/response.rbs in httpx-0.17.0
- old
+ new
@@ -20,20 +20,26 @@
def copy_to: (_ToPath | _Writer destination) -> void
def close: () -> void
def uri: () -> URI::Generic
- def merge_headers: (_Each[[headers_key, headers_value]]) -> void
+ def merge_headers: (_Each[[String, headers_value]]) -> void
def bodyless?: () -> bool
def content_type: () -> ContentType
def complete?: () -> bool
+ def json: (?json_options opts) -> untyped
+
+ def form: () -> Hash[String, untyped]
+
private
def initialize: (Request request, String | Integer status, String version, headers?) -> untyped
def no_data?: () -> bool
+ def decode:(String format, ?untyped options) -> untyped
+
class Body
include _Reader
include _ToS
include _ToStr
@@ -71,10 +77,10 @@
def self.mime_type: (_ToS) -> String?
def self.charset: (_ToS) -> String?
private
- def initialize: (String?, String?) -> untyped
+ def initialize: (String? header_value) -> void
end
class ErrorResponse
include _Response
include Loggable
\ No newline at end of file