class Protocol::HTTP::Header::AcceptEncoding
def encodings
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