diff --git a/common/http-api-client/src/url.rs b/common/http-api-client/src/url.rs index d964a6a3f4..e0aafbdd4c 100644 --- a/common/http-api-client/src/url.rs +++ b/common/http-api-client/src/url.rs @@ -191,6 +191,16 @@ impl Url { false } + /// Returns the inner `url::Url` reference + pub fn inner_url(&self) -> &url::Url { + &self.url + } + + /// Returns the front URLs if configured + pub fn fronts(&self) -> Option<&Vec> { + self.fronts.as_ref() + } + /// Return the string representation of the current front host (domain or IP address) for this /// URL, if any. pub fn front_str(&self) -> Option<&str> {