Use HTTP verb functions to retrieve the HTTP verb and the resource path segments that are used in a request. The HTTP verb functions are available under the
Request Context
section of the Expression Editor.
You can use the following HTTP verb functions for processes that run on the Cloud Server:
getRequestHTTPVerb
Use the
getRequestHTTPVerb
function to determine the HTTP verb that is used in a request. The function retrieves the HTTP verb from the request and returns one of the following responses in a string format:
GET
POST
PATCH
PUT
DELETE
getResourcePathSegments
Use the
getResourcePathSegments
function to retrieve all or specific resource path segments of REST requests. The function returns the values as a string of tokens.