class Protocol::HTTP::Header::AcceptCharset

The ‘accept-charset` header represents a list of character sets that the client can accept.

def charsets

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

Parse the `accept-charset` header value into a list of character sets.
def charsets
	self.map do |value|
		if match = value.match(CHARSET)
			Charset.new(match[:name], match[:q])
		else
			raise ParseError.new("Could not parse character set: #{value.inspect}")
		end
	end
end