sig/plugins/stream.rbs in httpx-0.13.2 vs sig/plugins/stream.rbs in httpx-0.14.0
- old
+ new
@@ -1,6 +1,23 @@
module HTTPX
+ class StreamResponse
+ include _ToS
+
+ def each: () { (String) -> void } -> void
+ | () -> Enumerable[String]
+
+ def each_line: () { (String) -> void } -> void
+ | () -> Enumerable[String]
+
+ def on_chunk: (string) -> void
+
+ private
+
+ def response: () -> response
+ def initialize: (Request, Session, Array[Connection]) -> untyped
+ end
+
module Plugins
module Stream
module InstanceMethods
private
@@ -14,25 +31,9 @@
module ResponseMethods
def stream: () -> StreamResponse?
end
- class StreamResponse
- include _ToS
-
- def each: () { (String) -> void } -> void
- | () -> Enumerable[String]
-
- def each_line: () { (String) -> void } -> void
- | () -> Enumerable[String]
-
- def on_chunk: (string) -> void
-
- private
-
- def response: () -> response
- def initialize: (Request, Session) -> untyped
- end
end
type sessionStream = Session & Plugins::Stream::InstanceMethods
end
end