swindon 0.7.8

An HTTP edge (frontend) server with smart websockets support
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17



pub fn early_error(rt: &Arc<Runtime>, status: Status, debug: &Debug) {
    let cfg = rt.config.get();
    if cfg.debug_logging {
        if let Some(ref fmt) = cfg.log_formats.get("debug-log") {
            EarlyContext {
                request: EarlyRequest {
                },
                request: EarlyResponse {
                    status: status,
                },
            }.log(fmt, BufWriter::new(stdout()));
        }
    }
}