Useful helper functions
Leverage useful helper functions within Hoverfly Cloud's templating engine to simplify and enhance your API simulations.
Concatenate two strings
Search and replace text in a string
Create an array from a delimited string
This can be particularly useful when dealing with the results of a JSONPath query that returns an array, as these are space delimited strings of values.
Change the HTTP response code
If you are following a pattern where you want a single request/response pair to return different HTTP response codes based on the outcome of logic, then you can do that using the following function:
PreviousCombining and nesting templating functionsNextAvoiding HTML encoding in function return values
Last updated