# File lib/rack/request.rb, line 244
244:     def accept_encoding
245:       @env["HTTP_ACCEPT_ENCODING"].to_s.split(/,\s*/).map do |part|
246:         m = /^([^\s,]+?)(?:;\s*q=(\d+(?:\.\d+)?))?$/.match(part) # From WEBrick
247: 
248:         if m
249:           [m[1], (m[2] || 1.0).to_f]
250:         else
251:           raise "Invalid value for Accept-Encoding: #{part.inspect}"
252:         end
253:       end
254:     end