kap 0.0.1-pre5

Run AI agents in secure capsules. Built on devcontainers with network controls and remote access.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use bytes::Bytes;
use http_body_util::Full;
use hyper::{Response, StatusCode};

type Body = Full<Bytes>;

const HTML: &str = include_str!("../../static/app.html");

pub fn serve_app() -> Response<Body> {
    Response::builder()
        .status(StatusCode::OK)
        .header("Content-Type", "text/html; charset=utf-8")
        .header("Cache-Control", "no-store, no-cache, must-revalidate")
        .body(Full::new(Bytes::from(HTML)))
        .unwrap()
}