CGI::Header::Adapter - Base class for adapters
use parent 'CGI::Header::Adapter'; sub finalize { ... }
This module inherits from CGI::Header, and also adds the following methods to the class:
Returns an arrayref which contains key-value pairs of HTTP headers.
$header->as_arrayref; # => [ # 'Content-length' => '3002', # 'Content-Type' => 'text/plain', # ]
This method helps you write an adapter for mod_perl or a PSGI application which wraps your CGI.pm-based application without parsing the return value of CGI.pm's header method.
header
Returns the header fields as a formatted MIME header. If the nph property is set to true, the Status-Line is inserted to the beginning of the response headers.
nph
Returns the system specific line ending sequence.
Ryo Anazawa (anazawa@cpan.org)
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install CGI::Header, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Header
CPAN shell
perl -MCPAN -e shell install CGI::Header
For more information on module installation, please visit the detailed CPAN module installation guide.