nickel 0.11.0

An express.js inspired web framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use util::*;

use hyper::client::Response;

fn with_path<F>(path: &str, f: F) where F: FnOnce(&mut Response) {
    run_example("query_string", |port| {
        let url = format!("http://localhost:{}{}", port, path);
        let ref mut res = response_for(&url);
        f(res)
    })
}

mod get;
mod all;