[Dancer-users] return part of the data

Maurice Mengel mauricemengel at gmail.com
Mon Aug 30 15:40:10 CEST 2010


Hi fellow dancers,

So far I know only how to return output via return. As far as I can
see, this requires that I already have the full content available at
the point when I return. I wonder if there is there is a webapp
equivalent to this

foreach (@big_loop) {
  my $result=do_something();
  print STDOUT $result
}

where I can calculate a piece, output it and continue to do so until
done. This would bring down the lacency (until response begins)
enormously.

I am working on a OAI data provider, see
http://www.openarchives.org/OAI/openarchivesprotocol.html. The
specification requires me to deliver a potentially big xml via http. I
would love to generate this xml on the fly.

Or do I get something totally wrong here?

Any suggestions greatly appreciated.

thanks
from the beginners' dance class

Maurice


More information about the Dancer-users mailing list