CGI-Application
    
    
  
  
  
view release on metacpan or search on metacpan
lib/CGI/Application.pm view on Meta::CPAN
    my $self = shift;
    # do stuff here....
    $self->header_type('redirect');
    $self->header_props(-url=>  "http://site/path/doc.html" );
  }
To simplify that further, use L<CGI::Application::Plugin::Redirect>:
    return $self->redirect('http://www.example.com/');
Setting the header to 'none' may be useful if you are streaming content.
In other contexts, it may be more useful to set C<$ENV{CGI_APP_RETURN_ONLY} = 1;>,
which suppresses all printing, including headers, and returns the output instead.
That's commonly used for testing, or when using L<CGI::Application> as a controller
for a cron script!
=cut
sub html_tmpl_class {
    my $self = shift;
( run in 0.740 second using v1.01-cache-2.11-cpan-5dc5da66d9d )