URL Standard figure prototype

(target: §4.1 URL representation)

URL components of three example URLs Three example URLs broken into their internal components. First: the special URL https://sub.example.com:8080/p/a/t/h?query=string#hash, with scheme "https", host "sub.example.com", port "8080", path "/p/a/t/h", query "query=string", and fragment "hash". Second: the special URL git://source.example.com:9418/repository.git, with scheme "git", host "source.example.com", port "9418", and path "/repository.git". Third: the opaque-path URL urn:isbn:9780241600269?part=Bird, with scheme "urn", opaque path "isbn:9780241600269", and query "part=Bird". https://sub.example.com:8080/p/a/t/h?query=string#hash git://source.example.com:9418/repository.git urn:isbn:9780241600269?part=Bird scheme host port path query fragment
The components of three example URLs.

(target: top of §6.1 URL class)

URL class getter values for three example URLs The same three example URLs annotated with the URL class's getter values. For https://sub.example.com:8080/p/a/t/h?query=string#hash: protocol "https:", origin "https://sub.example.com:8080", host "sub.example.com:8080", hostname "sub.example.com", port "8080", pathname "/p/a/t/h", search "?query=string", hash "#hash". For git://source.example.com:9418/repository.git: protocol "git:", origin "null" (non-special), host "source.example.com:9418", hostname "source.example.com", port "9418", pathname "/repository.git", search empty, hash empty. For urn:isbn:9780241600269?part=Bird: protocol "urn:", origin "null", host empty, pathname "isbn:9780241600269", search "?part=Bird". https://sub.example.com:8080/p/a/t/h?query=string#hash git://source.example.com:9418/repository.git urn:isbn:9780241600269?part=Bird hostname port protocol host origin pathname search hash
The URL class's getters of three example URLs.