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



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


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?


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! :-)

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment

Your Information

(Name is required. Email address will not be displayed with the comment.)

June 2013

Sun Mon Tue Wed Thu Fri Sat
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
Blog powered by Typepad