Input.fieldNames
Input.fieldNames($method) -> list
Description
Get the names of all fields in the request.
$method
can be get
or post
.
// Post data: // userId = 1234, age = 33 fun mainPost { Input.fieldNames('post') //= ['userId', 'age'] }
Get the names of all fields in the request.
$method
can be get
or post
.
// Post data: // userId = 1234, age = 33 fun mainPost { Input.fieldNames('post') //= ['userId', 'age'] }