anchor.diff:  response.headers.'X-Gravitee-Gateway-Version' = '0.14.0'
   ----
   
  -== Usage
  +== Configuration
   
  -You can attach a groovy script to all phases of the request processing.
  +[source, json]
  +"groovy": {
  +    "onRequestScript": "request.headers.'X-Gravitee-Gateway' = '0.14.0'",
  +    "onResponseScript": "response.headers.remove 'X-Powered-By'",
  +    "onRequestContentScript": "" // Not executed if empty
  +    "onResponseContentScript": "" // Not executed if empty
  +}
   
  -=== OnRequest / OnResponse
  +== Usage and examples
   
  -Some variables are automatically bind to the Groovy script to let user to use them and define the policy behavior.
  +=== onRequest / onResponse
  +
  +Some variables are automatically bound to the Groovy script to allow users to use them and define the policy behavior.
   
   [width="100%",cols="2,10",options="header"]
   .List of groovy script variables
   |===
   | Name | Description
   
  -| *request* | Inbound HTTP request
  -| *response* | Outbound HTTP response
  -| *context* | `PolicyContext` used to access external components such as services, resources, ...
  -| *result* | Result of the groovy script
  +| `request` | Inbound HTTP request
  +| `response` | Outbound HTTP response
  +| `context` | `PolicyContext` used to access external components such as services and resources
  +| `result` | Groovy script result
   
   |===
   
  -You can also break request or response processing by setting the result's state to `FAILURE`, providing an HTTP
  -status code and a message (not mandatory, status is equals to 500 (internal server error) by default).
  +You can interrupt request or response processing by setting the result state to `FAILURE`, providing an HTTP
  +status code and a message (this is not mandatory, as the default status is `500 - internal server error`).
   
   [source, groovy]
   ----
  
positive.code: = Groovy Policy
  
  ifdef::env-github[]
  image:https://ci.gravitee.io/buildStatus/icon?job=gravitee-io/gravitee-policy-groovy/master["Build status", link="https://ci.gravitee.io/job/gravitee-io/job/gravitee-policy-groovy/"]
  
negative.code: ]
  ----
  
  == Errors
  
  === HTTP status code
  
  |===
  |Code |Message
  
  | ```500```
  | The Groovy script cannot be parsed/compiled or executed (mainly due to a syntax error)
  
  |===
  