teepot/crates/intel-dcap-api/examples
Harald Hoyer bb9c5b195e
feat(intel-dcap-api): add automatic retry logic for 429 rate limiting
- Add `max_retries` field to ApiClient with default of 3 retries
- Implement `execute_with_retry()` helper method in helpers.rs
- Update all HTTP requests to use retry wrapper for automatic 429 handling
- Add `TooManyRequests` error variant with request_id and retry_after fields
- Respect Retry-After header duration before retrying requests
- Add `set_max_retries()` method to configure retry behavior (0 disables)
- Update documentation and add handle_rate_limit example
- Enhanced error handling in check_status() for 429 responses

The client now transparently handles Intel API rate limiting while remaining
configurable for users who need different retry behavior or manual handling.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
2025-05-28 11:52:32 +02:00
..
common_usage.rs feat(intel-dcap-api): add comprehensive testing infrastructure and examples 2025-05-28 11:52:31 +02:00
example.rs feat(api): add Intel DCAP API client module 2025-04-10 14:51:51 +02:00
fetch_test_data.rs feat(intel-dcap-api): add comprehensive testing infrastructure and examples 2025-05-28 11:52:31 +02:00
get_pck_crl.rs feat(api): add Intel DCAP API client module 2025-04-10 14:51:51 +02:00
handle_rate_limit.rs feat(intel-dcap-api): add automatic retry logic for 429 rate limiting 2025-05-28 11:52:32 +02:00
integration_test.rs feat(intel-dcap-api): add comprehensive testing infrastructure and examples 2025-05-28 11:52:31 +02:00