URL Parser

Parse and build URLs

URL Parser

Parse URLs into their components

Protocol
https:
Hostname
example.com
Port
8080
Pathname
/path/to/page
Origin
https://example.com:8080
Hash
#section
Username
user
Password
pass
Query Parameters (2)
key=value
foo=bar