Ryo Anazawa > CGI-Header-0.19 > CGI::Header::PSGI

Download:
CGI-Header-0.19.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: CGI-Header-0.45

NAME ^

CGI::Header::PSGI - Mixin to generate PSGI response headers

SYNOPSIS ^

  use parent 'CGI';
  use CGI::Header::PSGI qw( psgi_header psgi_redirect );

DESCRIPTION ^

This module is a mixin class to generate PSGI response headers.

METHODS

By using this module, your class is capable of following methods.

($status_code, $headers_aref) = $query->psgi_header( %args )

Works like CGI.pm's header(), but the return format is modified. It returns an array with the status code and arrayref of header pairs that PSGI requires.

($status_code, $headers_aref) = $query->psgi_redirect( %args )

Works like CGI.pm's redirect(), but the return format is modified. It returns an array with the status code and arrayref of header pairs that PSGI requires.

SEE ALSO ^

CGI::PSGI

AUTHOR ^

Ryo Anazawa (anazawa@cpan.org)

LICENSE ^

This module is free software; you can redistibute it and/or modify it under the same terms as Perl itself. See perlartistic.

syntax highlighting: