Add std.parseUrl
Open
enhancement
stdlib
- Dominant language
- Jsonnet
- Stars
- 7.6k
- Forks
- 475
- PR merge metrics
- No merged PRs in 30d
Description
Having a `std.parseUrl(str)` that returns a JSON object with "scheme", "host", "path", "query" and "fragment" fields would be useful for generating configurations where some applications accept parts of the URL as individual fields.
I suppose "host" could be more complicated, e.g. it may be useful to have "host" and "port" separated out, it may be useful to have "hostport" as a single string, have "port" always populated with the default for the "scheme", etc.
Contributor guide
Assessment
This issue has not been assessed yet.