aboutsummaryrefslogtreecommitdiffstats
path: root/examples/server.rs
blob: f3a9c768f2be3653a6c69e97b7697835bb2cf837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate http;

use http::{Response, StatusCode};

use fcgi_rs;


fn main() {
    fcgi_rs::run(|req| {
        let resp = Response::builder()
            .status(StatusCode::OK)
            .body(())
            .unwrap();

        return resp;
    });
}