Is it possible to rewrite an upstream url within a Python plugin? We have a use case where we need to rewrite the url based on some business logic so cannot use the rewrite rules that can be added along with the API.
I’ve tried setting a new string in request.object.url but that does not have any effect.
It looks like it is possible with JS middlewares but we need to use Python as we would like to use a Redis library to pull a HSET.
Hoping it is possible, or more than willing to submit a PR if someone, maybe @matiasb? Can point me in the right direction.