URL Parser
Break a URL into protocol, host, port, path, query parameters and hash.
Parts
| Protocol | https: | |
|---|---|---|
| Username | user | |
| Password | pass | |
| Host | example.com:8080 | |
| Hostname | example.com | |
| Port | 8080 | |
| Origin | https://example.com:8080 | |
| Path | /path/to/page | |
| Query | ?query=1&tag=a&tag=b | |
| Hash | #section |
Query parameters
| query | 1 |
|---|---|
| tag | a |
| tag | b |