Sha256: cc726ef950af3817717b2d0055e035487f58eaa71d840b065e78494ca81e4ea3
Contents?: true
Size: 947 Bytes
Versions: 54
Compression:
Stored size: 947 Bytes
Contents
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 def request: (*Request, ?stream: bool, **untyped?) -> (response | Array[response] | StreamResponse) | (*untyped, ?stream: bool, **untyped?) -> (response | Array[response] | StreamResponse) end module RequestMethods attr_accessor stream: StreamResponse? end module ResponseMethods def stream: () -> StreamResponse? end end type sessionStream = Session & Stream::InstanceMethods end end
Version data entries
54 entries across 54 versions & 1 rubygems