mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-06 12:13:06 +00:00
38 lines
972 B
Rust
38 lines
972 B
Rust
//! HTTP related utilities used by various Proxmox products.
|
|
|
|
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
|
|
|
#[cfg(feature = "websocket")]
|
|
pub mod websocket;
|
|
|
|
#[cfg(feature = "http-helpers")]
|
|
pub mod uri;
|
|
|
|
#[cfg(feature = "http-helpers")]
|
|
pub mod proxy_config;
|
|
#[cfg(feature = "http-helpers")]
|
|
pub use proxy_config::ProxyConfig;
|
|
|
|
#[cfg(feature = "http-helpers")]
|
|
mod http_options;
|
|
#[cfg(feature = "http-helpers")]
|
|
pub use http_options::HttpOptions;
|
|
|
|
#[cfg(any(feature = "client", feature = "client-sync"))]
|
|
pub mod client;
|
|
|
|
#[cfg(feature = "client-trait")]
|
|
mod client_trait;
|
|
#[cfg(feature = "client-trait")]
|
|
pub use client_trait::HttpClient;
|
|
|
|
#[cfg(feature = "rate-limiter")]
|
|
mod rate_limiter;
|
|
#[cfg(feature = "rate-limiter")]
|
|
pub use rate_limiter::{RateLimit, RateLimiter, RateLimiterVec, ShareableRateLimit};
|
|
|
|
#[cfg(feature = "rate-limited-stream")]
|
|
mod rate_limited_stream;
|
|
#[cfg(feature = "rate-limited-stream")]
|
|
pub use rate_limited_stream::RateLimitedStream;
|