Is it possible to get unsent HTTP/2 requests? #3561
-
Hello again, I have the intention to implement retry HTTP/2 requests after receiving a GOAWAY frame in my HTTP/2 interception proxy. I checked H2 documentation but it seems to me that neither SendRequest nor SendStream have an API to return the request passed to them. I wonder if it's currently possible to implement retry without cloning every request, that's something I don't want to do. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It is not currently possible. You may clone the requests. You can check out the the |
Beta Was this translation helpful? Give feedback.
It is not currently possible. You may clone the requests. You can check out the the
tower::retry
middleware that does a lot of that for you, if you define aPolicy
for what requests/responses/errors can be retried.