class Protocol::HTTP::Header::AcceptCharset
The ‘accept-charset` header represents a list of character sets that the client can accept.
def charsets
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