Catalyst::Engine - The Catalyst Engine
See Catalyst.
Finalize body. Prints the response output.
Create CGI::Simple::Cookie objects from $c->res->cookies, and set them as response headers.
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.
Abstract method, allows engines to write headers to response
Clean up after uploads, deleting temp files.
sets up the Catalyst::Request object body using HTTP::Body
Add a chunk to the request body.
Sets up parameters from body.
Abstract method implemented in engines.
Parse cookies from header. Sets a CGI::Simple::Cookie object.
sets up parameters from query and post parameters.
abstract method, implemented by engines.
process the query string and extract query parameters.
prepare to read from the engine.
Populate the context object from the request object.
Abstract method. Implemented by the engines.
Reads from the input stream by calling $self->read_chunk.
$self->read_chunk
Maintains the read_length and read_position counters as data is read.
Each engine implements read_chunk as its preferred way of reading a chunk of data. Returns the number of bytes read. A return of 0 indicates that there is no more data to be read.
The length of input data to be read. This is obtained from the Content-Length header.
The amount of input data that has already been read.
Start the engine. Builds a PSGI application and calls the run method on the server passed in, which then causes the engine to loop, handling requests..
Builds and returns a PSGI application closure, wrapping it in the reverse proxy middleware if the using_frontend_proxy config setting is set.
Writes the buffer to the client.
Unescapes a given URI using the most efficient method available. Engines such as Apache may implement this using Apache's C-based modules, for example.
<obsolete>, see finalize_body
Hash containing environment variables including many special variables inserted by WWW server - like SERVER_*, REMOTE_*, HTTP_* ...
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.
Catalyst Contributors, see Catalyst.pm
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Runtime, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Runtime
CPAN shell
perl -MCPAN -e shell install Catalyst::Runtime
For more information on module installation, please visit the detailed CPAN module installation guide.