def render_response(self, response, renderer=None, renderer_kwargs=None):

        if renderer:
            if hasattr(renderer, "__iter__"):
                renderers = renderer
            else:
                renderers = [renderer]
        else:
            renderers = self.get_renderers_for_request()

        if renderer_kwargs is None:
            renderer_kwargs = {}

        if isinstance(response, tuple):
            response, status, headers = response
        else:
            status = headers = None

        if isinstance(response, (basestring, BaseResponse)):
            return response

        if not isinstance(response, UnrenderedResponse):
            response = UnrenderedResponse(response, status, headers)

        for renderer in renderers:
            rendered = renderer(response, **renderer_kwargs)

            if rendered is not NotImplemented:
                return rendered

        raise RendererNotFound()
Renders an unrendered response (a bare value, a (response, status, headers)-:obj:`tuple`, or an :class:`~flask.ext.pushrod.renderers.UnrenderedResponse` object).
dataset/ETHPy150Open teozkr/Flask-Pushrod/flask_pushrod/resolver.py/Pushrod.render_response