Sha256: eea8a1c5dbce80e3a4af00c98ba44a05f7769a15d617bea02435fa0a2ef843b0

Contents?: true

Size: 980 Bytes

Versions: 11

Compression:

Stored size: 980 Bytes

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

      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) -> untyped
      end
    end

    type sessionStream = Session & Plugins::Stream::InstanceMethods
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
httpx-0.13.2 sig/plugins/stream.rbs
httpx-0.13.1 sig/plugins/stream.rbs
httpx-0.13.0 sig/plugins/stream.rbs
httpx-0.12.0 sig/plugins/stream.rbs
httpx-0.11.3 sig/plugins/stream.rbs
httpx-0.11.2 sig/plugins/stream.rbs
httpx-0.11.1 sig/plugins/stream.rbs
httpx-0.11.0 sig/plugins/stream.rbs
httpx-0.10.2 sig/plugins/stream.rbs
httpx-0.10.1 sig/plugins/stream.rbs
httpx-0.10.0 sig/plugins/stream.rbs