Hi Everybody,
is it possible for a controller method to directly produce the raw HTTP response?
My application generates a (potentially large)) ZIP file on the fly,
which I don't want to store (on disk or in memory) but rather send it
directly to the client while producing it.
In a CGI script I use Archive::Zip such as
print CGI::header(...);
$ZIP->writeToFileHandle(*STDOUT);
for my $f (@files) {
$ZIP->addFile($f, basename($f));
}
How can I achieve something similar under Catalyst?
Thanks,
Christian
--
http://www.spect-ct.com/ Molecular Imaging
http://www.invicro.com/ inviCRO
http://www.lackas.net/ Perl Delphi Linux MP3 Searchengines Domainchecker
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/
is it possible for a controller method to directly produce the raw HTTP response?
My application generates a (potentially large)) ZIP file on the fly,
which I don't want to store (on disk or in memory) but rather send it
directly to the client while producing it.
In a CGI script I use Archive::Zip such as
print CGI::header(...);
$ZIP->writeToFileHandle(*STDOUT);
for my $f (@files) {
$ZIP->addFile($f, basename($f));
}
How can I achieve something similar under Catalyst?
Thanks,
Christian
--
http://www.spect-ct.com/ Molecular Imaging
http://www.invicro.com/ inviCRO
http://www.lackas.net/ Perl Delphi Linux MP3 Searchengines Domainchecker
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/