add Date header

This commit is contained in:
Sean McArthur
2014-09-03 14:14:44 -07:00
parent e2e93c5d5f
commit 4d77477c83
4 changed files with 70 additions and 2 deletions

View File

@@ -39,8 +39,8 @@ fn bench_curl(b: &mut test::Bencher) {
struct Foo;
impl hyper::header::Header for Foo {
fn header_name(_: Option<Foo>) -> SendStr {
Slice("x-foo")
fn header_name(_: Option<Foo>) -> &'static str {
"x-foo"
}
fn parse_header(_: &[Vec<u8>]) -> Option<Foo> {
None