แยกส่วน URL

แยกส่วน 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

namevalueencoded
page22
qhello worldhello+world
tagaa
tagbb