Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

request

The request object is a global object available in Edge Encryption rule action and condition scripts.

The request object is a JavaScript object that represents the client request coming in to the Edge Encryption proxy server. You must build your encryption rule to parse the request object, map request object values to fields in a table on the instance, and encrypt any sensitive data in the request object.

The request object includes the following attributes and data from the client request:

FieldDescription
pathThe path portion of the URL.
requestMethodGET, POST, PUT, PATCH, DELETE.
contentTypeThe Content-Type header field.
urlParamsThe parameters in the query string. This can also be evaluated to a String.
postParamsIf this is a form post, this contains the post parameters.

Parent Topic:Encryption rule objects and APIs

request - getAsJsonContent()

Returns the request as an iterable object of type JsonNode.

This method is available only in an Edge Encryption rule if the request body is a valid JSON payload. If you are not sure what format the request body includes, check the contentType field on the request object.

Once the request is returned as a JsonNode object, you can use the JSON APIs to iterate over the object and encrypt fields.

NameTypeDescription
None  
TypeDescription
JsonNodeThe request as an iterable JsonNode.

request - getAsXmlContent()

Returns the request content as an iterable object of type XMLContent.

This method is available only in an Edge Encryption rule if the request body is a valid XML payload. If you are not sure what format the request body includes, check the contentType field on the request object.

Once the request is returned as an XMLContent object, you can use the XML APIs to iterate over the object and encrypt fields.

NameTypeDescription
None  
TypeDescription
XMLContentThe request as an iterable object of type XMLContent.

request - XMLContains(String path)

Returns true if the given path exists in the XML DOM.

This method is available only if the request body is a valid XML payload. If you are not sure what format the request body includes, check the contentType field on the request object.

NameTypeDescription
pathStringXPath statement you are searching for.
TypeDescription
BooleanWhether the given path exists in the XML DOM.