lib/protocol/http/body/rewindable.rb in protocol-http-0.32.0 vs lib/protocol/http/body/rewindable.rb in protocol-http-0.33.0
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
# Released under the MIT License.
-# Copyright, 2019-2023, by Samuel Williams.
+# Copyright, 2019-2024, by Samuel Williams.
require_relative 'wrapper'
require_relative 'buffered'
module Protocol
@@ -39,13 +39,9 @@
# A rewindable body wraps some other body. Convert it to a buffered body. The buffered body will share the same chunks as the rewindable body.
#
# @returns [Buffered] the buffered body.
def buffered
Buffered.new(@chunks)
- end
-
- def stream?
- false
end
def read
if @index < @chunks.size
chunk = @chunks[@index]