Replies: 2 comments
-
even request has clone() method, i think it may cost expansive. |
Beta Was this translation helpful? Give feedback.
0 replies
-
In my experience, this isn't a problem. Even if you are posting a lot of data, your data must live somewhere and if the request fails, you can simply reconstruct the headers and stream the data to the server again, unless you're writing a proxy and is streaming the data from the client to the origin server. In that case, I don't think it's possible to retry sending the request. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
pseudo code:
loop {
let resp=client.execute(request);
//custom policy
if current_time="2023-11-11"{
continue;
}
break;
}
if want retry like this,request must clone, request has no clone method
Beta Was this translation helpful? Give feedback.
All reactions