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

[Feature]: corefunc_url_parse #50

Closed
skyzyx opened this issue Oct 26, 2023 · 2 comments
Closed

[Feature]: corefunc_url_parse #50

skyzyx opened this issue Oct 26, 2023 · 2 comments
Assignees

Comments

@skyzyx
Copy link
Member

skyzyx commented Oct 26, 2023

What functionality would you like to see?

Parses a URL according to the rules of the WHATWG URL Specification.

data "corefunc_url_parse" "url" {
  url = "http://example.com:80/a?b#c"
}
#=> {
#  scheme            = "http"
#  host              = "example.com"
#  port              = ""
#  pathname          = "/a"
#  hash              = "#c"
#  fragment          = "c"
#  search            = "?b"
#  query             = "b"
#  normalized        = "http://example.com/a?b#c"
#  normalized_nofrag = "http://example.com/a?b"
# }
@skyzyx skyzyx self-assigned this Oct 26, 2023
@skyzyx
Copy link
Member Author

skyzyx commented Oct 26, 2023

@skyzyx
Copy link
Member Author

skyzyx commented Feb 3, 2024

Implemented in 1da303c.

@skyzyx skyzyx closed this as completed Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant