You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experimenting with building a reverse proxy, following the guide here: https://quarkus.io/guides/rest-client
The problem I'm having is I want to allow an arbitrary number of path parameters. For example:
As you can see the /hello/world is encoded to /hello%2Fworld rightly so, but I want to avoid this behavior and forward the full path onwards.
You may be thinking this seems like a weird and probably bad idea, but the end goal is allowing an arbitrary path such that I could hit APIs provided by other users e.g localhost:8081/proxy/one/two/three/four/five.
I have also tried pulling out the path via @Context UriInfo uriInfo and manually building the path back up, but that just results in more %2F
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm experimenting with building a reverse proxy, following the guide here: https://quarkus.io/guides/rest-client
The problem I'm having is I want to allow an arbitrary number of path parameters. For example:
I have tried the following:
Config:
quarkus.rest-client.proxy-api.url=http://localhost:8080
quarkus.rest-client.proxy-api.scope=jakarta.inject.Singleton
The problem that arises:
As you can see the /hello/world is encoded to /hello%2Fworld rightly so, but I want to avoid this behavior and forward the full path onwards.
You may be thinking this seems like a weird and probably bad idea, but the end goal is allowing an arbitrary path such that I could hit APIs provided by other users e.g localhost:8081/proxy/one/two/three/four/five.
I have also tried pulling out the path via
@Context UriInfo uriInfo
and manually building the path back up, but that just results in more %2FBeta Was this translation helpful? Give feedback.
All reactions