Merge pull request #118 from hyperium/headers-clone

make Headers implement Clone
This commit is contained in:
Jonathan Reem
2014-11-21 05:16:38 -08:00
4 changed files with 24 additions and 2 deletions

View File

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