def get_renderers_for_request(self, request=None):

        if request is None:
            request = current_request

        if self.format_arg_name in request.args:
            renderer_name = request.args[self.format_arg_name]

            if renderer_name in self.named_renderers:
                return [self.named_renderers[renderer_name]]
            else:
                return []

        matching_renderers = [self.mime_type_renderers[mime_type]
                               for mime_type in request.accept_mimetypes.itervalues()
                               if mime_type in self.mime_type_renderers]

        if self.default_renderer:
            matching_renderers.append(self.default_renderer)

        return matching_renderers
Inspects a Flask :class:`~flask.Request` for hints regarding what renderer to use.
dataset/ETHPy150Open teozkr/Flask-Pushrod/flask_pushrod/resolver.py/Pushrod.get_renderers_for_request