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

Verify your Comment

Previewing your Comment

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

Working...
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.

Working...

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
            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