NAME
Egg::Plugin::HTTP::HeadParser - Analysis of request header and response header.
SYNOPSIS
use Egg qw/ HTTP::HeadParser /;
$header= <<END_HEADER;
Content-Tyle: text/html
Content-Language: ja
content ....
END_HEADER
my $hash= $e->parse_http_header($header);
METHODS
parse_http_header ( [HEADER_TEXT] )
HEADER_TEXT is analyzed and the result is returned by the HASH reference.
GET of the request header and the header such as POST preserve the content in 'method' key.
The header following the response header HTTP/\d + preserves the content in 'status' key.
Other headers can be referred to with the key that makes all the names a small letter.
SEE ALSO
AUTHOR
Masatoshi Mizuno <lushe@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2008 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.