class Protocol::HTTP::Header::AcceptEncoding
The ‘accept-encoding` header represents a list of encodings that the client can accept.
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