Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable direct URI - remote_authority checking #224

Open
AnotherDaniel opened this issue Dec 11, 2024 · 0 comments
Open

Enable direct URI - remote_authority checking #224

AnotherDaniel opened this issue Dec 11, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@AnotherDaniel
Copy link
Contributor

Currently, the Uri type comes with a is_remote_authority() method, which takes another Uri as a parameter and compares whether the own vs the other Uri-authority are identical, ie whether the other Uri is local or remote.

To facilitate the case where I directly have an authority string, which I want to compare to a Uri to check for localness/remoteness, we add a Uri method that directly accepts an authority string and performs this check.
This avoids that users in such cases have to artificially construct a Uri from their authority, just so they can use the is_remote_authority() method.

@AnotherDaniel AnotherDaniel self-assigned this Dec 11, 2024
@AnotherDaniel AnotherDaniel added the enhancement New feature or request label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant