You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Read a chunk from the underlying body and compress it. If the body is finished, the stream is flushed and finished, and the remaining data is returned.
99
+
#
100
+
# @returns [String | Nil] the compressed chunk or `nil` if the stream is closed.
# Generate an appropriate ETag for the digest, assuming it is complete. If you call this method before the body is fully read, the ETag will be incorrect.
42
+
#
43
+
# @parameter weak [Boolean] If true, the ETag is marked as weak.
44
+
# @returns [String] the ETag.
33
45
defetag(weak: false)
34
46
ifweak
35
47
"W/\"#{digest.hexdigest}\""
@@ -38,6 +50,9 @@ def etag(weak: false)
38
50
end
39
51
end
40
52
53
+
# Read the body and update the digest. When the body is fully read, the callback is invoked with `self` as the argument.
54
+
#
55
+
# @returns [String | Nil] the next chunk of data, or nil if the body is fully read.
0 commit comments