in reply to Re^2: Plack and apache child init phase
in thread Plack and apache child init phase
Why do you ask?
So I can frame the question better, and because I can't really think of any other purpose for the hook :)
I think you'll find https://metacpan.org/pod/Plack::Handler::Apache2#STARTUP-FILE interesting, as well as https://metacpan.org/pod/Plack::Component#OBJECT-LIFECYCLE and especially https://metacpan.org/pod/Plack::Builder#INLINE-MIDDLEWARE
So you can create your own init_hook as an anonymous inline Plack::Middleware
Thats your PlackChildInitHandlerbuilder { ... enable \&child_init_phase; $app; }; ... sub child_init_phase { my( $app ) = @_; ... ## your init stuff here $app; ## return app unmodified }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Plack and apache child init phase (PlackChildInitHandler)
by ysth (Canon) on May 01, 2014 at 08:26 UTC | |
by Anonymous Monk on May 01, 2014 at 09:47 UTC | |
by ysth (Canon) on May 01, 2014 at 16:17 UTC |