class Protocol::HTTP::Header::AcceptLanguage

The ‘accept-language` header represents a list of languages that the client can accept.

def languages

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

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