Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

call different target connections based on query param

Not applicable

Hi ,

I need to call different target server paths based on incoming request query param value.

My incoming query param is "async" which will have either "true" or "false".

based on the async query value, i need to change path of target .

<HTTPTargetConnection>

<LoadBalancer>

<Server name="target-server"/>

</LoadBalancer>

<Path>/v1/sync/test</Path>

</HTTPTargetConnection>

if async=false

<Path>/v1/sync/test</Path>

if async=true

<Path>/v1/async/test</Path>

Thanks

0 2 306
2 REPLIES 2