NAME

SYNOPSIS

DESCRIPTION

METHODS

$self->finalize_body($c)

Finalize body. Prints the response output as blocking stream if it looks like a filehandle, otherwise write it out all in one go. If there is no body in the response, we assume you are handling it 'manually', such as for nonblocking style or asynchronous streaming responses. You do this by calling "write" several times (which sends HTTP headers if needed) or you close over $response->write_fh.

$self->finalize_cookies($c)

Create CGI::Simple::Cookie objects from $c->res->cookies, and set them as response headers.

$self->finalize_error($c)

Output an appropriate error message. Called if there's an error in $c after the dispatch has finished. Will output debug messages if Catalyst is in debug mode, or a `please come back later` message otherwise.

$self->finalize_output

$self->env

Before accessing environment variables consider whether the same information is not directly available via Catalyst objects $c->request, $c->engine ...

BEWARE: If you really need to access some environment variable from your Catalyst application you should use $c->engine->env->{VARNAME} instead of $ENV{VARNAME}, as in some environments the %ENV hash does not contain what you would expect.

AUTHORS

Catalyst Contributors, see Catalyst.pm

COPYRIGHT

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.

Module Install Instructions

To install Catalyst::Engine, simply copy and paste either of the commands in to your terminal