lib/protocol/http/body/rewindable.rb in protocol-http-0.15.1 vs lib/protocol/http/body/rewindable.rb in protocol-http-0.16.0

- old
+ new

@@ -33,9 +33,13 @@ @chunks = [] @index = 0 end + def empty? + @index >= @chunks.size + end + # A rewindable body wraps some other body. Convert it to a buffered body def buffered Buffered.new(@chunks) end