async_http_router 0.0.4

a simple http_router for web server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::collections::HashMap;

#[derive(Debug)]
pub struct Req {
    pub uri: &'static str,
    pub pram: HashMap<String, String>,
}

impl Req {
    pub fn new() -> Req {
        Req {
            uri: "",
            pram: HashMap::new(),
        }
    }
}