Is it possible to get unsent HTTP/2 requests? #3561
Answered
by
seanmonstar
OldMansKid
asked this question in
Q&A
|
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. |
Answered by
seanmonstar
Feb 5, 2024
Replies: 1 comment 1 reply
|
It is not currently possible. You may clone the requests. You can check out the the |
1 reply
Answer selected by
OldMansKid
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is not currently possible. You may clone the requests. You can check out the the
tower::retrymiddleware that does a lot of that for you, if you define aPolicyfor what requests/responses/errors can be retried.