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.19.2 sig/plugins/stream.rbs
httpx-0.19.1 sig/plugins/stream.rbs
httpx-0.19.0 sig/plugins/stream.rbs
httpx-0.18.7 sig/plugins/stream.rbs
httpx-0.18.6 sig/plugins/stream.rbs
httpx-0.18.5 sig/plugins/stream.rbs
httpx-0.18.4 sig/plugins/stream.rbs
httpx-0.18.3 sig/plugins/stream.rbs
httpx-0.18.2 sig/plugins/stream.rbs
httpx-0.18.1 sig/plugins/stream.rbs
httpx-0.18.0 sig/plugins/stream.rbs
httpx-0.17.0 sig/plugins/stream.rbs
httpx-0.16.1 sig/plugins/stream.rbs
httpx-0.16.0 sig/plugins/stream.rbs