Hi, thanks for the reply. I don’t want just to “consume” the domain name (I mean using it in the rewrite_to
), I wan to match it as we can do with the path, payload, query and headers. I though maybe using the request_context_matches
but I can’t an example of using the domain name or the full URL in the regex.
For example I’d like to write two triggers, one when the URL has this pattern http://.+-testnet-.+\.com/(.+)
(so the domain has testnet
on it) and other with: http://.+-mainnet-.+\.com/(.+)
.