Repeated requests - best pattern is to try_clone Request? #1684
-
let request = client.get(url).query(params).build()?;
loop {
client
.execute(
request.try_clone().expect("body is never a stream")
)
.await?;
} Is this the minimal amount of cloning required? |
Beta Was this translation helpful? Give feedback.
Answered by
seanmonstar
Nov 18, 2022
Replies: 1 comment 1 reply
-
I believe so, yea. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
seanmonstar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe so, yea.