In a project, I am using spring cloud gateway. I need to discard some requests based on a header value as below:
-If a specific header(say myval1) is not present, discard the request
-If a specific header(say myval1) is present but the value does not match one of a set of values discard the request
-If a specific header(say myval1) is present and the value matches one of a set of values route the request
Normally I would implement a predicate but in my case, the value set to be checked is dynamic means each time I have to check against changing values. In this condition, how can I achieve this feature?
Thanks!