cripsy_binary_api/transport/mod.rs
1//! Capa de transporte: HTTP y WebSocket modernos.
2//!
3//! - [`http`]: cliente HTTP asíncrono (`reqwest`) con timeouts, cookies y
4//! reintentos.
5//! - [`websocket`]: cliente WebSocket asíncrono (`tokio-tungstenite`) con
6//! reconexión y envelope tipado `{name, msg, request_id}`.
7//! - [`router`]: correlación de respuestas por `request_id` (sin estado
8//! compartido: cada registro muere con su receptor).
9//! - [`retry`]: reintentos con backoff exponencial y jitter.
10//!
11//! No conoce el dominio de opciones binarias: solo mueve mensajes.
12
13pub mod error;
14pub mod router;
15
16#[cfg(feature = "async")]
17pub mod retry;
18
19#[cfg(feature = "async")]
20pub mod http;
21#[cfg(feature = "async")]
22pub mod websocket;
23
24pub use error::TransportError;
25#[cfg(feature = "async")]
26pub use retry::with_retry;
27pub use router::RequestRouter;