fix(header): make test_module of header! optional

Closes #490
This commit is contained in:
Sean McArthur
2015-04-30 15:03:26 -07:00
parent 92ee51acdb
commit a5ce9c59fa
2 changed files with 66 additions and 40 deletions

13
examples/headers.rs Normal file
View File

@@ -0,0 +1,13 @@
#![deny(warnings)]
#[macro_use]
// TODO: only import header!, blocked by https://github.com/rust-lang/rust/issues/25003
extern crate hyper;
// A header in the form of `X-Foo: some random string`
header! {
(Foo, "X-Foo") => [String]
}
fn main() {
}