URL Parser

Break a URL into protocol, host, port, path, query parameters and hash.

Parts

Protocolhttps:
Usernameuser
Passwordpass
Hostexample.com:8080
Hostnameexample.com
Port8080
Originhttps://example.com:8080
Path/path/to/page
Query?query=1&tag=a&tag=b
Hash#section

Query parameters

query1
taga
tagb