This allows us to use the router even with old code that won't return an actual Response object, but perform a redirection or print directly to the standard output.