-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
I'm currently trying to replace our homebrewn retry logic with the retry::Builder shipped in reqwest v0.12.23.
Two things stand out to me that currently make it hard for us to switch or are a regression compared to what we had:
-
Not all types in the API are actually exposed. In particular
ReqRepandClassifyare currently inaccessible. Given the comment at the beginning ofmod classify, this seems intentional, but is rather unfortunate. -
More importantly: in our use case we need to access the
payloadof the raw response (in bytes), parse it (protobuf), and then based on the values there decide whether the error is retryable. It would therefore be great if theclassify/classify_fnAPIs would allow us to actually access the (error) response.
Thank you!