How do I know if response has already been rendered? #2188
-
I want this: $app->helper('my_app.already_rendered', sub {...});
# Elsewhere
return $log->trace('Response already rendered for action "foo"')
if $c->my_app->already_rendered;
$c->render(...); I could probably just inspect
I assume they're both for internal use only and I'm not supposed to access them directly in application code? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
All |
Beta Was this translation helpful? Give feedback.
-
The safe thing to do is to see if the |
Beta Was this translation helpful? Give feedback.
The safe thing to do is to see if the
$c->res
has acode