Sha256: 8c61dccf301dfd828471d52afe09c9a5276483ecb593a42a76deac09552813c4

Contents?: true

Size: 956 Bytes

Versions: 11

Compression:

Stored size: 956 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 & Plugins::Stream::InstanceMethods
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
httpx-0.15.4 sig/plugins/stream.rbs
httpx-0.15.3 sig/plugins/stream.rbs
httpx-0.15.2 sig/plugins/stream.rbs
httpx-0.15.1 sig/plugins/stream.rbs
httpx-0.15.0 sig/plugins/stream.rbs
httpx-0.14.5 sig/plugins/stream.rbs
httpx-0.14.4 sig/plugins/stream.rbs
httpx-0.14.3 sig/plugins/stream.rbs
httpx-0.14.2 sig/plugins/stream.rbs
httpx-0.14.1 sig/plugins/stream.rbs
httpx-0.14.0 sig/plugins/stream.rbs