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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user