Build a URL from scheme, host, path segments, query pairs, and fragment text.
Components are encoded separately so structural delimiters remain meaningful while data receives percent escapes. Path, query, and fragment inputs follow their own URI rules.
Protocol: https Hostname: api.example.com Port: Pathname: /v1/users Query: page=1&limit=10 Hash:
https://api.example.com/v1/users?page=1&limit=10
Routers, API clients, and share links build URLs.