oxidux 0.4.0

Reverse proxy and process manager for web app development.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use hyper::{Body, Response};

const RESTART_RESPONSE: &str = include_str!(concat!(
    env!("CARGO_MANIFEST_DIR"),
    "/static/restart_response.html"
));

pub fn autostart_response() -> Response<Body> {
    let body = Body::from(RESTART_RESPONSE);

    Response::builder()
        .header("Content-Type", "text/html; charset=utf-8")
        .body(body)
        .unwrap()
}