NAME
CGI::Header::Redirect - Adapter for CGI::redirect() function
SYNOPSIS
use CGI::Header::Redirect;
my $header = CGI::Header::Redirect->new(
-uri => 'http://somewhere.else/in/movie/land',
-nph => 1,
-status => '301 Moved Permanently',
);
DESCRIPTION
INHERITANCE
CGI::Header::Redirect is a subclass of CGI::Header.
OVERRIDDEN METHODS
- $header = CGI::Header::Redirect->new( $url )
-
A shortcut for:
my $h = CGI::Header::Redirect->new({ -location => $url });
- $self = $header->clear
-
Unlike CGI::Header objects, you cannot
clear()
your CGI::Header::Redirect object. The Location header always exists.$header->clear; # warn "Can't delete the Location header"
- $bool = $header->is_empty
-
Always returns true.
- $header->as_string
-
A shortcut for:
$header->query->redirect( $header->header );
SEE ALSO
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.