Web-Simple
view release on metacpan or search on metacpan
lib/Web/Simple/Application.pm view on Meta::CPAN
To send basic authentication credentials, use user:pass@ syntax -
$ ./myapp GET bob:secret@/protected/path
Additionally, you can treat the file as though it were a standard PSGI
application file (*.psgi). For example you can start up up with C<plackup>
plackup my_web_simple_app.pl
or C<starman>
starman my_web_simple_app.pl
=head2 to_psgi_app
This method is called by L</run_if_script> to create the L<PSGI> app coderef
for use via L<Plack> and L<plackup>. If you want to globally add middleware,
you can override this method:
use Web::Simple 'HelloWorld';
{
( run in 0.834 second using v1.01-cache-2.11-cpan-e93a5daba3e )