Capturing parameters from a POST request in Spock

450 Views Asked by At

In the documentation of Spock, here https://www.spock.li/2015/04/19/type-safe_routing.html, it only describes how to capture parameters from a get request. I need to capture ones from a post. How can I do that?

1

There are 1 best solutions below

0
On

You can use the same param' or param functions. From the documentation :

Read a request param. Spock looks POST variables first and then in GET variable