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

Version Path
httpx-0.22.5 sig/plugins/stream.rbs
httpx-0.22.4 sig/plugins/stream.rbs
httpx-0.22.3 sig/plugins/stream.rbs
httpx-0.22.2 sig/plugins/stream.rbs
httpx-0.22.1 sig/plugins/stream.rbs
httpx-0.22.0 sig/plugins/stream.rbs
httpx-0.21.1 sig/plugins/stream.rbs
httpx-0.21.0 sig/plugins/stream.rbs
httpx-0.20.5 sig/plugins/stream.rbs
httpx-0.20.4 sig/plugins/stream.rbs
httpx-0.20.3 sig/plugins/stream.rbs
httpx-0.20.2 sig/plugins/stream.rbs
httpx-0.20.1 sig/plugins/stream.rbs
httpx-0.20.0 sig/plugins/stream.rbs
httpx-0.19.8 sig/plugins/stream.rbs
httpx-0.19.7 sig/plugins/stream.rbs
httpx-0.19.6 sig/plugins/stream.rbs
httpx-0.19.5 sig/plugins/stream.rbs
httpx-0.19.4 sig/plugins/stream.rbs
httpx-0.19.3 sig/plugins/stream.rbs