Scripts - groupon/odo GitHub Wiki

Groovy scripts can be added for annotating results in the history list. Currently failed results color the list row in red. Scripts can be added via the proxy ui Scripts link on the History page. Groovy variables are as follows for history script calls:

arg0 - Request Type
arg1 - Request URL
arg2 - Request Parameters
arg3 - Request POST Data
arg4 - Request Headers
arg5 - Response Code
arg6 - Response Content Type
arg7 - Response Headers

The result of a script is a List with the following entries:

[0] - 0 or 1 indicating success or failure
[1]+ - A message to display in the history list.  Multiple messages can be specified by adding additional list entries.