def redirect(self, location, code=302, response_class=None, body=None,
                 empty=False):
        response_class = response_class or self.app.response_class

        if empty:
            from warnings import warn
            warn(DeprecationWarning("BaseRequestHandler.redirect(): the "
                "'empty' keyword argument is deprecated. Use body='' "
                "instead."))
            body = ''

        return redirect(location, code=code, response_class=response_class,
                        body=body)
Returns a response object that redirects to the given location.
dataset/ETHPy150Open moraes/tipfy/tipfy/handler.py/BaseRequestHandler.redirect