2012-06-15 14:55:36 -07:00
|
|
|
#[link(name = "req")];
|
|
|
|
#[crate_type = "lib"];
|
|
|
|
|
|
|
|
use std;
|
|
|
|
|
|
|
|
import dvec::*;
|
|
|
|
import dvec::dvec;
|
|
|
|
import std::map::hashmap;
|
|
|
|
|
2012-07-13 22:57:48 -07:00
|
|
|
type header_map = hashmap<~str, @dvec<@~str>>;
|
2012-06-15 14:55:36 -07:00
|
|
|
|
|
|
|
// the unused ty param is necessary so this gets monomorphized
|
|
|
|
fn request<T: copy>(req: header_map) {
|
2012-07-13 22:57:48 -07:00
|
|
|
let _x = *(*req.get(~"METHOD"))[0u];
|
2012-06-15 14:55:36 -07:00
|
|
|
}
|