Is it possible to clone/copy/refer a request? #2968
Unanswered
frederikhors
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this code and I would like to understand if there is another way to avoid re-creating each time the
req
variable.Is it possible to clone/copy/refer it in the
retry
function?If I move the line
let req = Request::builder().uri("http://localhost").body(Body::empty()).unwrap()
outside the closurehyper
complains.Beta Was this translation helpful? Give feedback.
All reactions