Parses the raw accept header into an array of sorted AcceptType objects.
accept_header<~to_s> |
The raw accept header. |
The accepted types. |
@private
# File lib/merb-core/controller/mixins/responder.rb, line 396 def self.parse(accept_header) headers = accept_header.split(/,/) idx, list = 0, [] while idx < headers.size list << AcceptType.new(headers[idx], idx) idx += 1 end list.sort end
Generated with the Darkfish Rdoc Generator 2.