def parse_accept_header(accept_header):
  accept_items = []
  for index, header in enumerate(accept_header.split(',')):
    accept_items.append(AcceptItem(header, index))
  return sorted(accept_items)
Parse accept header.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/protorpc/protorpc/util.py/parse_accept_header