Egg::Response - It processes it concerning the response of Egg.
# Access from Egg to this object. $e->response; or $e->res; # Content-Type is set. $responce->content_type('image/png'); # Contents are output. $responce->body('Hello, world!'); # An original header is set. $responce->header( 'X-Orign' => 'foooo' ); or $responce->push_header( 'X-Orign' => 'foooo' ); # Redirect $response->redirect('http://domainname/', 307); etc..
It is a module that takes charge of the contents output of Egg.
output content type is set.
Please set $e->config->{content_type}. default is 'text/html'.
We will cast a spell so that a browser of the client should not cache it.
We will cast a spell so that a browser of the client may cache it.
The 'Content-Disposition' header is set.
content-disposition: attachment; filename=[file_name]
It keeps it temporarily until contents are output.
It maintains it internally by the Scalar reference.
Response header is assembled and it returns it.
Cookie is set with each key.
Set cookie is returned by HASH reference.
All set cookie is canceled.
'Set-Cookie' header is assembled and it returns it.
Screen is forward to passed URL.
Status code can be set by the second argument. default is 302.
HTTP status code that wants to be returned at the end of processing is set. (200, 404, 403, 500 etc..)
Accessor to HTTP::Headers object.
HTTP::Headers, Egg::Request, Egg::Release,
Masatoshi Mizuno, <lushe@cpan.org>
Copyright (C) 2006 Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install Egg::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release
CPAN shell
perl -MCPAN -e shell install Egg::Release
For more information on module installation, please visit the detailed CPAN module installation guide.