nautalid 0.1.0

Scratch container substrate — TLS 1.3 HTTP/2+3 kernel, LID/AetherDB, optional filter bus (GPL-3.0-or-later).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! KDL reply bodies for filter control (uses shared bus formatting).

use crate::bus::response;
use crate::filter::FilterStore;

pub fn ok(label: &str) -> String {
    response::ok(label)
}

pub fn err(message: &str) -> String {
    response::err(message)
}

pub fn status(store: &FilterStore) -> String {
    let snap = store.snapshot();
    format!("status deny={} allow={}", snap.deny.len(), snap.allow.len())
}