Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stonecypher/erlurl
Because I needed to stochastically test URL parsing. And the name was pithy.
https://github.com/stonecypher/erlurl
Last synced: about 1 month ago
JSON representation
Because I needed to stochastically test URL parsing. And the name was pithy.
- Host: GitHub
- URL: https://github.com/stonecypher/erlurl
- Owner: StoneCypher
- License: mit
- Created: 2013-10-16T03:53:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-14T01:50:29.000Z (almost 11 years ago)
- Last Synced: 2024-10-26T01:31:51.903Z (3 months ago)
- Language: Erlang
- Size: 137 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
erlurl
======Because I needed to stochastically test URL parsing. And the name was pithy.
Status
------This is a new library and is considered to be usable. However, it is esoteric, and most people are not expected to want it.
Hau 2
-----Put it in `/foo/erlurl.erl`, then `c("/foo/erlurl.erl").` then
```
1> erlurl:url().
{"ftp://:[email protected]:9000/index.html;e=1,;c=1,2,3;b=1,;d=;a=1,2,3;f=?q&r=1#",
[ftp,
{nothing,"pass"},
"www.ibm.com",9000,"index.html",
[{"e",["1"]},
{"c",["1","2","3"]},
{"b",["1"]},
"d",
{"a",["1","2","3"]},
"f"],
[q,{r,1}],
undefined]}
```The notation is `{ Url, ParseResultList }`. The parse result is the protocol, the user/pass,
the location, port, request target, matrix parameters, query parameters, and fragment of the url.Polemic :neckbeard:
-------------------`erlurl` is MIT licensed, because viral licenses and newspeak language modification are evil. Free is ***only*** free when it's free for everyone.