sig/plugins/stream.rbs in httpx-1.1.4 vs sig/plugins/stream.rbs in httpx-1.1.5
- old
+ new
@@ -1,28 +1,6 @@
module HTTPX
- class StreamResponse
- include _ToS
-
- @request: Request & RequestMethods
- @session: sessionStream
- @on_chunk: ^(String) -> void | nil
-
- def each: () { (String) -> void } -> void
- | () -> Enumerable[String]
-
- def each_line: () { (String) -> void } -> void
- | () -> Enumerable[String]
-
- def on_chunk: (string) -> void
-
- def initialize: (Request, Session) -> void
-
- private
-
- def response: () -> response
- end
-
module Plugins
module Stream
module InstanceMethods
private
@@ -39,7 +17,31 @@
end
end
type sessionStream = Session & Stream::InstanceMethods
+ end
+
+ class StreamResponse
+ include _ToS
+
+ type streamRequest = Request & Plugins::Stream::RequestMethods
+
+ @request: streamRequest
+ @session: Plugins::sessionStream
+ @on_chunk: ^(String) -> void | nil
+
+ def each: () { (String) -> void } -> void
+ | () -> Enumerable[String]
+
+ def each_line: () { (String) -> void } -> void
+ | () -> Enumerable[String]
+
+ def on_chunk: (string) -> void
+
+ def initialize: (streamRequest, Plugins::sessionStream) -> void
+
+ private
+
+ def response: () -> response
end
end