Skip to content

Instantly share code, notes, and snippets.

@krainboltgreene
Created May 30, 2015 23:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save krainboltgreene/1a6d7d48c030badd2b64 to your computer and use it in GitHub Desktop.
Save krainboltgreene/1a6d7d48c030badd2b64 to your computer and use it in GitHub Desktop.
foo://username:password@example.com:8042/over/there/index.dtb?type=animal&name=narwhal#nose
\_/ \_______________/ \_________/ \__/ \___/ \_/ \______________________/ \__/
| | | | | | | |
| userinfo host port | | query fragment
| \________________________________/\_____________|____|/ \__/ \__/
scheme | | | | | |
name authority | | | | |
| path | | interpretable as keys
| | |
| \_______________________________________________|____|/ \____/ \_____/
| | | | | |
scheme hierarchical part | | interpretable as values
name | |
| path interpretable as filename |
| ___________|____________ |
/ \ / \ |
urn:example:animal:ferret:nose interpretable as extension
path
_________|________
scheme / \
name userinfo hostname query
_|__ ___|__ ____|____ _____|_____
/ \ / \ / \ / \
mailto:username@example.com?subject=Topic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment