Add accessor methods for Url internals

Add inner_url() and fronts() accessor methods to nym_http_api_client::Url
for VPN client integration
This commit is contained in:
Tommy Verrall
2025-10-20 14:33:57 +02:00
parent c448ec823a
commit 18cebdfedc
+10
View File
@@ -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<url::Url>> {
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> {