class Protocol::HTTP::Body::Readable

def join

@returns [String | Nil] The binary string containing all chunks of data, or `nil` if the stream has finished (or did not contain any data).

Read all remaining chunks into a single binary string using `#each`.
def join
	buffer = String.new.force_encoding(Encoding::BINARY)
	
	self.each do |chunk|
		buffer << chunk
	end
	
	if buffer.empty?
		return nil
	else
		return buffer
	end
end