capture request and response objects in shared flow-flow hooks

Hi Team,

We have a requirement to log request and response objects in a shared flow cache policy and hook it to an environment. For some policies the flow is stopping in the pre flow policies itself(not going to target). In such cases we are not able to capture the response objects.

Please let me know if it is possible to capture request and response objects in the shared flow.

Thanks in advance,

Prashanthi.

1 1 335
1 REPLY 1

Sure, it's possible. But if the call never goes to the target... then.... ?? what's the response? I guess it's whatever your ProxyEndpoint logic has set it to.

This doc page describes what you need to know.

You'll set your logging logic on the "Post-proxy Flow Hook". This is called just before the response is sent to the original caller.