class Protocol::HTTP::Body::ZStream

def ratio

@returns [Float] the compression ratio, e.g. 0.5 for 50% compression.

The compression ratio, according to the input and output lengths.
def ratio
	if @input_length != 0
		@output_length.to_f / @input_length.to_f
	else
		1.0
	end
end