Parse URL with duplicate keys and fragment
Input
https://example.test:8443/docs?q=hello%20world&q=two#introExample output
{
"href": "https://example.test:8443/docs?q=hello%20world&q=two#intro",
"protocol": "https:",
"origin": "https://example.test:8443",
"username": null,
"password": null,
"host": "example.test:8443",
"hostname": "example.test",
"port": "8443",
"pathname": "/docs",
"pathSegments": [
"docs"
],
"search": "?q=hello%20world&q=two",
"queryParams": {
"q": [
"hello world",
"two"
]
},
"queryEntries": [
{
"key": "q",
"value": "hello world"
},
{
"key": "q",
"value": "two"
}
],
"hash": "#intro",
"hashFragment": "intro"
}{
"q": [
"hello world",
"two"
]
}