Axum proxy? #704
Unanswered
frederikhors
asked this question in
Q&A
Axum proxy?
#704
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After hyper v1 revolution (they removed the native hyper Client moving it in "legacy" crate in another hyper-util crate) I would like to use ureq (instead of reqwest or others).
I need to use it in multiple places but one of them is driving me crazy (along with #705).
I'm using "axum" and I need to "proxy" some requests, but I don't understand how to do it.
The actual code is:
And this works because axum 0.6 uses the same
Request
andResponse
of hyper pre v1.Now with
ureq
I would like to know if something like this is possible.I tried with:
but obviously this doesn't work because for example if the
localhost:9000
answers with a redirect the status code is wrong, the body too and so on.I'm trying to understand if this is the right way to do it...
Beta Was this translation helpful? Give feedback.
All reactions