code: def mediatypes(self):
          
          return [h for h, q in sorted(request.accept_mimetypes,
                                       key=operator.itemgetter(1), reverse=True)]
docs: Returns a list of requested mediatypes sent in the Accept header