test(headers): Add tests for single value headers.

This commit is contained in:
Pyfisch
2015-04-26 19:16:44 +02:00
parent 6d34448043
commit a27e6812b9
16 changed files with 79 additions and 16 deletions

View File

@@ -11,6 +11,10 @@ header! {
#[doc="Date = HTTP-date"]
#[doc="```"]
(Date, "Date") => [HttpDate]
test_date {
test_header!(test1, vec![b"Tue, 15 Nov 1994 08:12:31 GMT"]);
}
}
bench_header!(imf_fixdate, Date, { vec![b"Sun, 07 Nov 1994 08:48:37 GMT".to_vec()] });