Hey Gabor.

On 10/01/2015 9:49 pm, Gabor Szabo wrote:
I wonder wouldn't it be better to have separate param() functions for values received in the URL and values received in the POST request?

You can use the `params` keyword to access the various sources of params including 'query', 'route', or 'body'.
eg.
  my $body_params = params('body'); #hashref of only the body params

Or in other words, could someone explain why was the decision to unite these input channels?

This is what Sinatra does and hence what Dancer does.

Hope that helps,
   Russell.

_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to