-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
src: add node::url::URL::href() method #22610
Comments
@nodejs/url |
the url serializer is written in js, so i'm not 100% sure if this is possible without a lot of code duplication |
@devsnek Yeah my guess is that we will have to duplicate. That's fine though, as we already have a duplicated |
Are there any specs for |
I am not sure if is this one |
@tigercosmos Yes! You can even look at how lib/internal/url.js implements it in JavaScript, and just duplicate that logic in C++. |
Hi @ak239 |
I'm taking over this issue |
@stropitek As @WaleedAshraf commented, this might not be necessary since |
May be worth it to dig deeper to verify if If it does to remove this TODO and update to use the |
No the |
Is this being actively worked on? |
@ak239 This is still something you want/need? Or did you find some other workaround? |
There is no URL::ToString method and AFAIK @stropitek has a wip branch to add it |
Yup. That's |
Would it make sense to open a WIP PR? |
As far as I remember the motivation behind this one was driven by one of the comments in the code review for one of my PRs: #22251 (comment) |
Is your feature request related to a problem? Please describe.
I need to get href based on instance of URL object in native code.
Describe the solution you'd like
I can use href() method that is added in addition to existing getters.
The text was updated successfully, but these errors were encountered: