aboutsummaryrefslogtreecommitdiffstats
path: root/examples/server.rs
blob: 861984c6d4fc22e066eafe67a51f573c06909754 (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;


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

        return resp;
    });
}