def best_match_content_type(self, supported_content_types=None):
        supported_content_types = supported_content_types or \
            ('application/json', 'application/xml')

        parts = self.path.rsplit('.', 1)
        if len(parts) > 1:
            ctype = 'application/{0}'.format(parts[1])
            if ctype in supported_content_types:
                return ctype

        bm = self.accept.best_match(supported_content_types)

        # default to application/json if we don't find a preference
        return bm or 'application/json'
Get first xref to 'To'
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/openstack/wsgi.py/Request.best_match_content_type--crossover with--dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/RfirstB0