2012-06-15 16:55:36 -05:00
|
|
|
#[link(name = "req")];
|
|
|
|
#[crate_type = "lib"];
|
|
|
|
|
|
|
|
use std;
|
|
|
|
|
|
|
|
import dvec::*;
|
2012-08-14 18:54:13 -05:00
|
|
|
import dvec::DVec;
|
2012-06-15 16:55:36 -05:00
|
|
|
import std::map::hashmap;
|
|
|
|
|
2012-08-14 18:54:13 -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
|
|
|
|
fn request<T: copy>(req: header_map) {
|
2012-07-14 00:57:48 -05:00
|
|
|
let _x = *(*req.get(~"METHOD"))[0u];
|
2012-06-15 16:55:36 -05:00
|
|
|
}
|