sig/response.rbs in httpx-0.22.5 vs sig/response.rbs in httpx-0.23.0
- old
+ new
@@ -39,18 +39,18 @@
private
def initialize: (Request request, String | Integer status, String version, headers?) -> untyped
def no_data?: () -> bool
- def decode:(String format, ?untyped options) -> untyped
+ def decode:(Transcoder::_Decode transcoder, ?untyped options) -> untyped
class Body
include _Reader
include _ToS
include _ToStr
- attr_reader encoding: String
+ attr_reader encoding: Encoding | String
@response: Response
@headers: Headers
@options: Options
@state: :idle | :memory | :buffer | :closed
@@ -106,12 +106,16 @@
@options: Options
@error: Exception
attr_reader request: Request
+ attr_reader response: Response?
+
def status: () -> (Integer | _ToS)
def uri: () -> URI::Generic
+
+ def close: () -> void
private
def initialize: (Request, Exception, options) -> untyped
end
\ No newline at end of file