POE::Component::Server::HTTPServer::ParameterParseHandler - Parse request parameters into context


POE-Component-Server-HTTPServer documentation  | view source Contained in the POE-Component-Server-HTTPServer distribution.

Index


NAME

Top

POE::Component::Server::HTTPServer::ParameterParseHandler - Parse request parameters into context

SYNOPSIS

Top

    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";
    }

DESCRIPTION

Top

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}.

Stack this handler before handlers which need to process request parameters.

TODO

Top

Multivalued parameters are currently not currently supported.

Multipart submissions are currently not supported.

AUTHOR

Top

Greg Fast <gdf@speakeasy.net>

COPYRIGHT

Top


POE-Component-Server-HTTPServer documentation  | view source Contained in the POE-Component-Server-HTTPServer distribution.