[Catalyst] Force server to send data to browser....

Jonathan Rockway jon at jrock.us
Wed Aug 30 03:10:05 CEST 2006

> Is there a way to send stuff as
> it's running, like forcing the server to send info every so often?

Nope, everything is printed in a big print statement in finalize(). 
(Actually, it's not that big... it's only one line.  But you know what I
mean.)  If you think about it, this is necessary because you can change
headers or the body at any time in the request cycle... and you can't
unsend data.

However, nothing is stopping you from printing to {*STDERR}, using
"warn", or running myapp_server.pl under perl's debugger.  Printing
debugging information to the browser is completely unnecessary.

Jonathan Rockway

More information about the Catalyst mailing list