RequestΒΆ

The request object represents the HTTP request and current context for the controller.

{
  "mode": "edit",
  "uri": "http://enonic.com/my/page",
  "method": "GET",
  "branch": "master",
  "params": {
    "debug": "true"
  },
  "formParams": {
    "user": "dymmy",
    "password": "secret"
  },
  "headers": {
    "Language": "en",
    "Cookies": "mycookie=123; other=abc;"
  },
  "cookies": {
    "mycookie": "123",
    "other": "abc"
  }
}
mode
Rendering mode, one of: edit, preview, live.
uri
URI of the request.
method
HTTP method of the request.
branch
Name of the repository branch, one of: draft, master.
params
Name/value pairs with the URI query parameters from the request.
formParams
Name/value pairs with the form parameters submitted in the request.
headers
Name/value pairs with the HTTP request headers.
cookies
Name/value pairs with the HTTP request cookies.