2012-06-15 16:55:36 -05:00
|
|
|
#[link(name = "req")];
|
|
|
|
#[crate_type = "lib"];
|
2012-09-24 19:29:20 -05:00
|
|
|
#[legacy_exports];
|
2012-06-15 16:55:36 -05:00
|
|
|
|
2012-09-11 19:46:20 -05:00
|
|
|
extern mod std;
|
2012-06-15 16:55:36 -05:00
|
|
|
|
2012-09-05 14:32:05 -05:00
|
|
|
use dvec::*;
|
|
|
|
use dvec::DVec;
|
2012-09-10 17:38:28 -05:00
|
|
|
use std::map::HashMap;
|
2012-06-15 16:55:36 -05:00
|
|
|
|
2012-09-10 17:38:28 -05:00
|
|
|
type header_map = HashMap<~str, @DVec<@~str>>;
|
2012-06-15 16:55:36 -05:00
|
|
|
|
|
|
|
// the unused ty param is necessary so this gets monomorphized
|
2012-09-07 16:52:28 -05:00
|
|
|
fn request<T: Copy>(req: header_map) {
|
2012-12-05 19:36:51 -06:00
|
|
|
let _x = copy *(copy *req.get(~"METHOD"))[0u];
|
2012-06-15 16:55:36 -05:00
|
|
|
}
|