Skip to content

Instantly share code, notes, and snippets.

@avasquez614
Created January 20, 2014 21:10
Show Gist options
  • Save avasquez614/8529220 to your computer and use it in GitHub Desktop.
Save avasquez614/8529220 to your computer and use it in GitHub Desktop.
Crafter Engine Groovy Script Example
package scripts.rest
def values = [:]
params.each { name, value -> values[name] = value }
headers.each { name, value -> values[name] = value }
cookies.each { name, value -> values[name] = value }
sessionAttributes.each { name, value -> values[name] = value }
return values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment