-
How would I be able to pull response headers like // just for context
item, err := client.DrivesById(driveID).ItemsById(itemID).Get(context.Background(), nil) I might be missing something, but looking at the err( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @meain |
Beta Was this translation helpful? Give feedback.
Hi @meain
The SDK already has a retry-handler that automatically reads the headers and retries failed responses across all the API surface for you.
You can either create your own handler and replace this one in the client configuration if you'd like to change the behavior across all requests.
Or you can use the RequestHandlerOption to intercept the response handlers for a one of request.