1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Replay middleware for time-travel debugging.
//!
//! This module provides the runtime integration for the replay system:
//!
//! - [`ReplayLayer`] - Middleware that records request/response pairs
//! - [`InMemoryReplayStore`] - In-memory bounded ring buffer store
//! - [`FsReplayStore`] - Filesystem-backed store (JSON Lines)
//! - [`ReplayClient`] - HTTP client for replaying recorded requests
//! - [`RetentionJob`] - Background TTL cleanup task
//! - [`ReplayAdminAuth`] - Bearer token authentication for admin endpoints
//!
//! # Quick Start
//!
//! ```ignore
//! use rustapi_extras::replay::ReplayLayer;
//! use rustapi_core::replay::ReplayConfig;
//!
//! let layer = ReplayLayer::new(
//! ReplayConfig::new()
//! .enabled(true)
//! .admin_token("my-secret-token")
//! );
//!
//! RustApi::new()
//! .layer(layer)
//! .route("/api/users", get(handler))
//! .run("127.0.0.1:8080")
//! .await?;
//! ```
pub use ReplayAdminAuth;
pub use ;
pub use ;
pub use ReplayLayer;
pub use InMemoryReplayStore;
pub use RetentionJob;