13
examples/headers.rs
Normal file
13
examples/headers.rs
Normal 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() {
|
||||
}
|
||||
Reference in New Issue
Block a user