Egg::Plugin::HTTP::HeadParser - Analysis of request header and response header.


Egg-Release documentation  | view source Contained in the Egg-Release distribution.

Index


NAME

Top

Egg::Plugin::HTTP::HeadParser - Analysis of request header and response header.

SYNOPSIS

Top

  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

Top

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

Top

Egg::Release,

AUTHOR

Top

Masatoshi Mizuno <lushe&64;cpan.org>

COPYRIGHT AND LICENSE

Top


Egg-Release documentation  | view source Contained in the Egg-Release distribution.