Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Need a clean way to access POST data

#10

Currently, accessing POST data requires this awkward code:

@req.POST['key']

That's a little awkward. Consider this shortcut code:

post['key']

Since this is on the server side, the post name will not conflict with the request method.

Also, the client should have hash key indifference, treating the same as 'foo'.

Reported by Matt Todd · January 20th, 2008 @ 06:42 PM

State: resolved
Milestone: Release 0.4.0
Assigned to: Matt Todd Matt Todd

Activity

  1. Matt Todd
    Matt Todd
    • State changed from new to resolved

    Revision 38 addresses this concern by providing both post[] and get[] (in addition to numerous other improvements, bugfixes, etc).

    post[:foo]
    

    This revision also forcibly symbolizes most parameters it comes in contact with (except for those in env which should remain upcased strings according to spec).

    January 21st, 2008 @ 03:22 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.