Subject: | $object as entry point - add caveat |
Hi,
this is not really a bug in CGI::Application::Server itself, just a
suggestion for the documentation.
The example in the SYNOPSIS section uses a CGI::Application object
$object as entry point for '/users', i.e. this object persists between
multiple requests. So far, the CGI::Application framework does not fully
support persistence out-of-the-box, e.g. header modifications persist
and show up again in the next reply (Redirect loop).
A small comment would be nice, perhaps like this:
# this CGI::Application object will stay persistent,
# might not be safe to use in this way - your mileage may vary
# http://www.mail-archive.com/cgiapp@lists.erlbaum.net/msg08997.html
my $object = MyOtherCGIApp->new(PARAMS => { foo => 1, bar => 2 });
Regards
Matthias