• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4251 shaares
Filters

Perl Advent Calendar 2014 - PSGI, Enabling Modern Web Technology in Perl

QRCode

In recent years we've seen an explosion of powerful web technologies in Perl not at the least due to the creation of the PSGI specification.

Plack provides the Plack::Middleware class that makes the process of modifying the response easier, and along with Plack::Util helps us deal with the slightly more complex cases where there's a callback for a response from our inner class:

Plack::Test

Another great thing about abstracting away the actual webserver that our PSGI application is talking to is that we don't actually have to have a real webserver at the outer layer at all! If we just want to test our application we can do this in process by just sending input to the anonymous subroutine and examining the return values.

https://perladvent.org/2014/2014-12-04.html
June 26, 2023 at 9:59:30 AM EDT *
perl psgi
FILLER
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community