Sha256: 2aa7f9ba836c3d53f6be3558d819b01b2cc822f357d3b9a46f789b22f66de0c7
Contents?: true
Size: 1.09 KB
Versions: 12
Compression:
Stored size: 1.09 KB
Contents
module HTTPX 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 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
Version data entries
12 entries across 12 versions & 1 rubygems