Skip to main content

opendev_http/
lib.rs

1//! HTTP client, authentication, and provider adapters for OpenDev.
2//!
3//! This crate provides:
4//! - [`client::HttpClient`] — reqwest wrapper with retry and cancellation support
5//! - [`auth::CredentialStore`] — secure credential storage (~/.opendev/auth.json)
6//! - [`rotation::AuthProfileManager`] — API key rotation with cooldown
7//! - [`adapters`] — provider-specific request/response adapters
8
9pub mod adapted_client;
10pub mod adapters;
11pub mod auth;
12pub mod circuit_breaker;
13pub mod client;
14pub mod models;
15pub mod rotation;
16pub mod streaming;
17pub mod user_store;
18
19pub use adapted_client::AdaptedClient;
20pub use auth::CredentialStore;
21pub use circuit_breaker::{CircuitBreaker, CircuitBreakerConfig};
22pub use client::HttpClient;
23pub use models::{HttpError, HttpResult, RetryConfig, classify_retryable_error, parse_retry_after};
24pub use rotation::AuthProfileManager;
25pub use user_store::UserStore;