Skip to content

Commit

Permalink
explain how the after_dispatch hook works for embedded application
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 19, 2012
1 parent 536ea37 commit 0a560bc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/Mojolicious.pm
Expand Up @@ -454,8 +454,8 @@ parsed.
});
This is a very powerful hook and should not be used lightly, it makes some
rather advanced features such as upload progress bars possible, just note that
it will not work for embedded applications. (Passed the transaction and
rather advanced features such as upload progress bars possible. Note that it
will not work for embedded applications. (Passed the transaction and
application object)
=item C<before_dispatch>
Expand Down Expand Up @@ -486,7 +486,9 @@ Mostly used for custom dispatchers and post-processing static file responses.
=item C<after_dispatch>
Emitted in reverse order after a response has been rendered. Note that this
hook can trigger before C<after_static_dispatch> due to its dynamic nature.
hook can trigger before C<after_static_dispatch> due to its dynamic nature,
and with embedded applications will only work for the application rendering
the response.
$app->hook(after_dispatch => sub {
my $c = shift;
Expand Down

0 comments on commit 0a560bc

Please sign in to comment.