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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
//! HTTP handlers for the ReasonKit Web server
//!
//! This module contains Axum handlers for various HTTP endpoints,
//! including the SSE feed for real-time event streaming, capture endpoint
//! for DOM content processing, and orchestrator endpoints for service management.
//!
//! # Modules
//!
//! - [`feed`] - Server-Sent Events feed for real-time capture and processing events
//! - [`capture`] - POST endpoint for capturing and processing DOM content
//! - [`status`] - Server status and health check endpoints
//! - [`orchestrator`] - Comprehensive orchestration API for all ReasonKit services
//!
//! # Example
//!
//! ```rust,no_run
//! use reasonkit_web::handlers::feed::{FeedState, build_feed_router};
//! use reasonkit_web::handlers::capture::{CaptureState, CaptureConfig, capture_router, create_capture_buffer};
//! use reasonkit_web::handlers::status::{AppState, status_router};
//! use reasonkit_web::handlers::orchestrator::{OrchestratorState, orchestrator_router};
//! use std::sync::Arc;
//!
//! #[tokio::main]
//! async fn main() {
//! // Set up feed state
//! let feed_state = Arc::new(FeedState::new(1024));
//!
//! // Set up capture state with bounded buffer
//! let (sender, receiver) = create_capture_buffer(1000);
//! let capture_state = Arc::new(CaptureState::new(CaptureConfig::default(), sender));
//!
//! // Set up status/health endpoints
//! let app_state = Arc::new(AppState::new());
//! let status_app = status_router(Arc::clone(&app_state));
//!
//! // Set up orchestrator endpoints
//! let orchestrator_state = Arc::new(OrchestratorState::new(app_state));
//! let orchestrator_app = orchestrator_router(orchestrator_state);
//!
//! // Build routers
//! let feed_app = build_feed_router(feed_state);
//! let capture_app = capture_router(capture_state);
//!
//! // Merge and serve...
//! }
//! ```
// Re-export commonly used items from feed
pub use ;
// Re-export commonly used items from capture
pub use ;
// Re-export commonly used items from status
pub use ;