foundation_toolings 0.0.1

Development tooling server: reverse proxy, file watcher, hot reload — built on valtron and native APIs, zero async runtime deps
1
2
3
4
5
6
7
8
9
10
// Route handler types — raw HTTP handler registry (no hyper).

use std::collections::HashMap;
use std::sync::Arc;

/// Raw HTTP route handler.
pub type RouteHandler = dyn Fn(&str) -> Vec<u8> + Send + Sync + 'static;

/// Route map — path → handler.
pub type RouteMap = HashMap<String, Arc<RouteHandler>>;