Egg::Response::Headers - Response header class for Egg.
# The response header is set. $e->response->headers->{'X-Header'}= 'hoge'; # The response header is set. $e->response->headers->header( 'X-Header' => 'hoge' ); # The response header is deleted. $e->response->headers->remove('X-Header'); # All the response headers are clear. $e->response->headers->clear;
It is make a response a header class only for Egg::Response.
Constructor. Egg::Response::Headers::TieHash The object is returned drinking.
my $headers= $e->response->headers;
The value becomes ARRAY reference of the following content.
Original name. Because lc is done as for the key, former name is preserved.
Value of header.
KEY is always necessary.
The value is set when VALUE is given, and the content corresponding to KEY is returned when omitting it.
my $hoge= $headers->header('X-Hoge'); $headers->header( 'X-Hoge' => 'foo' );
The header corresponding to KEY is deleted.
$headers->remove('X-Hoge');
Alias = delete
All set headers are cleared.
$headers->clear;
Egg::Release, Egg::Request, Tie::Hash, Tie::Hash::Indexed, Carp,
Masatoshi Mizuno, <lushe@cpan.org>
Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>.
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.