Flow hooks perform boilerplate request pre-processing or response post-processing across a set of APIs. You do this by defining a shared flow and then attaching it to one of the four possible flow hooks.
Before you can use a flow hook, you must create a new shared flow as described in Creating a shared flow in the Edge UI.
To add a shared flow to a flow hook:
- Open the Hybrid UI in a browser.
- Select Admin > Environments > Flow Hooks.
The Flow Hooks view displays:
- From the environment drop-down list, select the environment that you want to modify.
The UI displays a list of flow hooks and any shared flows associated with them. If there are no shared flows, then the list is empty.
- In the list of flow hooks, locate the flow hook to which you want to attach the shared flow.
You can choose from the following flow hooks:
Flow Hook Description Pre-proxy Executes before a proxy endpoint executes. Pre-target Executes before a target endpoint executes. Post-proxy Executes after the target response executes. Post-target Executes after the proxy endpoint executes, but before the response is sent back to the client.
- In the Shared Flow column, select the pencil icon next to the flow hook.
The Shared flow for flow_hook dialog box displays:
- From the Shared flow drop-down list, select a shared flow that you want to attach to the flow hook. If there are no shared flows in the list, you must create one first, as described in Creating a shared flow in the Edge UI.
- Click OK.
Hybrid adds the new shared flow to the flow hook.