class Protocol::HTTP::Body::Digestable

def read

@returns [String | Nil] the next chunk of data, or nil if the body is fully read.

Read the body and update the digest. When the body is fully read, the callback is invoked with `self` as the argument.
def read
	if chunk = super
		@digest.update(chunk)
		
		return chunk
	else
		@callback&.call(self)
		
		return nil
	end
end