URL Parser

Break a URL into protocol, host, path, query and hash

Parts

Full URLhttps://user:[email protected]:8443/path/to/page?foo=1&bar=hello%20world&foo=2#section
Protocolhttps
Usernameuser
Passwordpass
Hostnameexample.com
Port8443
Hostexample.com:8443
Originhttps://example.com:8443
Pathname/path/to/page
Search?foo=1&bar=hello%20world&foo=2
Hash#section

Query params (3)

KeyValue
foo1
barhello world
foo2