POE::Component::Server::HTTPServer::ParameterParseHandler - Parse request parameters into context
use POE::Component::Server::HTTPServer::Handler; $server->handlers([ '/act/' => new_handler('ParameterParseHandler'), '/act/' => \&action_handler, ]); sub action_handler { my $context = shift; print "The 'foo' parameter is: ", $context->{param}->{foo}, "\n"; }
ParameterParseHandler parses the request URI and body (for POST requests), and stores CGI parameters in the context. Parameters are stored as a hashref (name => value) in $context->{param}.
$context->{param}
Stack this handler before handlers which need to process request parameters.
Multivalued parameters are currently not currently supported.
Multipart submissions are currently not supported.
Greg Fast <gdf@speakeasy.net>
Copyright 2003 Greg Fast.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install POE::Component::Server::HTTPServer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::Server::HTTPServer
CPAN shell
perl -MCPAN -e shell install POE::Component::Server::HTTPServer
For more information on module installation, please visit the detailed CPAN module installation guide.