« Day 14: Use Plack::Request | Main | Day 16: Adding JSONP support to your app »

12/15/2009

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Uwe

The first example is wrong, it should be "return 1 if ..." (or just "return $username eq 'admin' && $password eq 'foobar';)

As for the last sentence: What is the recommended way?

miyagawa

Uwe: the code is fixed. Thanks!

The recommended way is, as we discussed yesterday's advent, is doing it in your application class and just run it from your .psgi.

The whole idea of PSGI is to create a dead simple interface (PSGI) and application/frameworks adapt to the interface to hide the details and provide a nice API. The end user should never have to deal with $env directly.

Frank P

Very helpful - thank you! :-)

The comments to this entry are closed.

June 2013

Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
Blog powered by Typepad