Skip to content

Instantly share code, notes, and snippets.

@darrend
Forked from avasquez614/test.get.groovy
Created January 20, 2014 21:24
Show Gist options
  • Save darrend/8529521 to your computer and use it in GitHub Desktop.
Save darrend/8529521 to your computer and use it in GitHub Desktop.
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