[Catalyst] How to send raw HTTP response

Christian Lackas christian at lackas.net
Thu Sep 25 19:35:14 BST 2008

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(...);
    for my $f (@files) {
        $ZIP->addFile($f, basename($f));

How can I achieve something similar under Catalyst?


http://www.spect-ct.com/ Molecular Imaging
http://www.invicro.com/  inviCRO
http://www.lackas.net/   Perl Delphi Linux MP3 Searchengines Domainchecker

More information about the Catalyst mailing list