class Protocol::HTTP::Header::AcceptEncoding

def encodings

@returns [Array(Charset)] the list of character sets and their associated quality factors.

Parse the `accept-encoding` header value into a list of encodings.
def encodings
	self.map do |value|
		if match = value.match(ENCODING)
			Encoding.new(match[:name], match[:q])
		else
			raise ParseError.new("Could not parse encoding: #{value.inspect}")
		end
	end
end