diff --git a/core/http/src/uri/absolute.rs b/core/http/src/uri/absolute.rs index 2d7a1c94..73770c64 100644 --- a/core/http/src/uri/absolute.rs +++ b/core/http/src/uri/absolute.rs @@ -21,7 +21,7 @@ use uri::{Authority, Origin, Error, as_utf8_unchecked}; /// /// The scheme part of the absolute URI and at least one of authority or origin /// are required. -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Absolute<'a> { source: Option>, scheme: IndexedStr<'a>, diff --git a/core/http/src/uri/authority.rs b/core/http/src/uri/authority.rs index b4628153..c95b5ad3 100644 --- a/core/http/src/uri/authority.rs +++ b/core/http/src/uri/authority.rs @@ -19,7 +19,7 @@ use uri::{as_utf8_unchecked, Error}; /// ``` /// /// Only the host part of the URI is required. -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Authority<'a> { source: Option>, user_info: Option>, @@ -27,7 +27,7 @@ pub struct Authority<'a> { port: Option, } -#[derive(Debug)] +#[derive(Debug, Clone)] crate enum Host { Bracketed(T), Raw(T) diff --git a/core/http/src/uri/uri.rs b/core/http/src/uri/uri.rs index 25d1d50d..2fed5d82 100644 --- a/core/http/src/uri/uri.rs +++ b/core/http/src/uri/uri.rs @@ -39,7 +39,7 @@ use uri::{Origin, Authority, Absolute, Error}; /// This type also provides the following percent encoding/decoding helper /// methods: [`Uri::percent_encode`], [`Uri::percent_decode`], and /// [`Uri::percent_decode_lossy`]. -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Clone)] pub enum Uri<'a> { /// An [`Origin`] URI. Origin(Origin<'a>),