feat(headers): adds re-parsing ability when getting typed headers

BREAKING CHANGE: added requirement that all HeaderFormat implementations
  must also be fmt::Debug. This likely as easy as slapping
  #[derive(Debug)] on to any custom headers.
This commit is contained in:
Sean McArthur
2015-02-05 17:09:02 -08:00
parent 9e0770896b
commit df756871ed
10 changed files with 258 additions and 240 deletions

View File

@@ -50,7 +50,7 @@ impl Write for MockStream {
}
}
#[derive(Clone)]
#[derive(Clone, Debug)]
struct Foo;
impl hyper::header::Header for Foo {