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