url parse
for network
Parses a url.
Signature
> url parse {flags} ...rest
Parameters
-
...rest
: optionally operate by cell path
Input/output types:
input | output |
---|---|
record | record |
string | record |
table | table |
Examples
Parses a url
>'http://user123:pass567@www.example.com:8081/foo/bar?param1=section&p2=&f[name]=vldc#hello'|url parse
╭──────────┬─────────────────────────────────╮
│scheme│http│
│username│user123│
│password│pass567│
│host│www.example.com│
│port│8081│
│path│/foo/bar│
│query│param1=section&p2=&f[name]=vldc│
│fragment│hello│
││╭─────────┬─────────╮│
│params││param1│section││
│││p2│││
│││f[name] │vldc││
││╰─────────┴─────────╯│
╰──────────┴─────────────────────────────────╯
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/url_parse.html