code: func WithBeforeRetry(beforeRetry retry.BeforeRetryHandler) RequestOption {
  	return func(ctx context.Client, o *requestOptions) error {
  		o.BeforeRetry = beforeRetry
  		return nil
  	}
  }
docs: // WithBeforeRetry specifies a function to call before a retry attempt