#10 ✓resolved
Matt Todd

Need a clean way to access POST data

Reported by Matt Todd | January 20th, 2008 @ 06:42 PM | in Release 0.4.0

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

Comments and changes to this ticket

  • Matt Todd

    Matt Todd January 21st, 2008 @ 03:22 AM

    • 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).

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages