Expand description
HTTP client, authentication, and provider adapters for OpenDev.
This crate provides:
client::HttpClient— reqwest wrapper with retry and cancellation supportauth::CredentialStore— secure credential storage (~/.opendev/auth.json)rotation::AuthProfileManager— API key rotation with cooldownadapters— provider-specific request/response adapters
Re-exports§
pub use adapted_client::AdaptedClient;pub use auth::CredentialStore;pub use circuit_breaker::CircuitBreaker;pub use circuit_breaker::CircuitBreakerConfig;pub use client::HttpClient;pub use models::HttpError;pub use models::HttpResult;pub use models::RetryConfig;pub use models::classify_retryable_error;pub use models::parse_retry_after;pub use rotation::AuthProfileManager;pub use user_store::UserStore;
Modules§
- adapted_
client - Adapted HTTP client that wraps HttpClient + ProviderAdapter.
- adapters
- Provider-specific request/response adapters.
- auth
- Secure credential storage with restrictive file permissions.
- circuit_
breaker - Circuit breaker for provider API calls.
- client
- HTTP client with retry logic and cancellation support.
- models
- Shared types for HTTP operations.
- rotation
- API key rotation and failover across providers.
- streaming
- SSE streaming support for LLM provider responses.
- user_
store - File-based user store for authentication.