Forge

URL Parser

Break apart a URL.

Protocol: https:
Host: example.com:8080
Hostname: example.com
Port: 8080
Pathname: /path/to
Search: ?x=1&y=2
Hash: #frag
Query: x=1, y=2