HTTP::Engine::Middleware::FillInForm - fill-in-form stuff
my $mw = HTTP::Engine::Middleware->new; $mw->install('HTTP::Engine::Middleware::FillInForm'); # or $mw->install( 'HTTP::Engine::Middleware::FillInForm' => { autorun_on_post => 1 } ); HTTP::Engine->new( interface => { module => 'YourFavoriteInterfaceHere', request_handler => $mw->handler( sub { HTTP::Engine::Response->new( body => '<form><input type="text" name="foo" /></form>' )->fillin_form() # when no args, fill-in-form from request params. # or HTTP::Engine::Response->new( body => '<form><input type="text" name="foo" /></form>' )->fillin_form({'foo' => 'bar'}) } ), } )->run();
Tokuhiro Matsuno
HTML::FillInForm
To install HTTP::Engine::Middleware, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Engine::Middleware
CPAN shell
perl -MCPAN -e shell install HTTP::Engine::Middleware
For more information on module installation, please visit the detailed CPAN module installation guide.