Merge pull request #358 from hyperium/reparsing

feat(headers): adds re-parsing ability when getting typed headers
This commit is contained in:
Sean McArthur
2015-03-03 20:47:47 -08:00
10 changed files with 258 additions and 240 deletions

View File

@@ -54,7 +54,7 @@ impl<S: Scheme + 'static> HeaderFormat for Authorization<S> where <S as FromStr>
}
/// An Authorization scheme to be used in the header.
pub trait Scheme: FromStr + Clone + Send + Sync {
pub trait Scheme: FromStr + fmt::Debug + Clone + Send + Sync {
/// An optional Scheme name.
///
/// For example, `Basic asdf` has the name `Basic`. The Option<Self> is