Apache2-PageKit

 view release on metacpan or  search on metacpan

docsrc/reference.xml  view on Meta::CPAN

     </refpurpose>
    </refnamediv>
    <refsynopsisdiv>
     <synopsis>

        #
        # for a filename, the media_type will be found by the <literal>MIME::Types</literal> module.
        #
	my $status_code = $model->pkit_send($filename);

        my $status_code = $model->pkit_send(\$data, 'image/png');

        # $data_ref is not zipped by the pkit_send methode, it sends
        # it only with this encoding header.
	my $status_code = $model->pkit_send($data_ref, 'html/text', 'gzip');

        my $status_code = $model->pkit_send($fh);

        $model->pkit_status_code($status_code);

     </synopsis>



( run in 0.805 second using v1.01-cache-2.11-cpan-df04353d9ac )