Skip to main content

Crate opendev_http

Crate opendev_http 

Source
Expand description

HTTP client, authentication, and provider adapters for OpenDev.

This crate provides:

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.