url parse for network

Parses a url.

Signature

> url parse ...rest

Parameters

  • ...rest: optionally operate by cell path

Input/output types:

inputoutput
recordrecord
stringrecord
tabletable

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    │           │
│          │ ╰─────────┴─────────╯           │
╰──────────┴─────────────────────────────────╯