sig/response.rbs in httpx-1.0.2 vs sig/response.rbs in httpx-1.1.0
- old
+ new
@@ -23,27 +23,33 @@
@options: Options
@request: Request
@content_type: ContentType
def copy_to: (_ToPath | _Writer destination) -> void
+
def close: () -> void
+
def uri: () -> URI::Generic
+ def peer_address: () -> ipaddr?
+
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]
+ def initialize: (Request request, String | Integer status, String version, headers?) -> void
+
private
- def initialize: (Request request, String | Integer status, String version, headers?) -> untyped
- def no_data?: () -> bool
-
def decode:(Transcoder::_Decode transcoder, ?untyped options) -> untyped
end
class ContentType
MIME_TYPE_RE: Regexp
@@ -75,9 +81,11 @@
attr_reader response: Response?
def status: () -> (Integer | _ToS)
def uri: () -> URI::Generic
+
+ def peer_address: () -> ipaddr?
def close: () -> void
private
\ No newline at end of file