แยกส่วน URL
แยก URL เป็น protocol / host / path / query / hash พร้อมแก้ query params แล้วประกอบกลับ
ชนิดabsolute
Protocolhttps:
Usernameuser
Password••••••
Hostexample.com
Port8443
Originhttps://example.com:8443
Path/api/v1/items
Hash#results
Path segments
apiv1items
Query params
| name | value | encoded |
|---|---|---|
| page | 2 | 2 |
| q | hello world | hello+world |
| tag | a | a |
| tag | b | b |