test(headers): Add tests for single value headers.
This commit is contained in:
		| @@ -15,6 +15,11 @@ header! { | ||||
|     #[doc="If-Unmodified-Since = HTTP-date"] | ||||
|     #[doc="```"] | ||||
|     (IfModifiedSince, "If-Modified-Since") => [HttpDate] | ||||
|  | ||||
|     test_if_modified_since { | ||||
|         // Testcase from RFC | ||||
|         test_header!(test1, vec![b"Sat, 29 Oct 1994 19:43:31 GMT"]); | ||||
|     } | ||||
| } | ||||
|  | ||||
| bench_header!(imf_fixdate, IfModifiedSince, { vec![b"Sun, 07 Nov 1994 08:48:37 GMT".to_vec()] }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user