urilib/README.md

18 lines
660 B
Markdown
Raw Normal View History

2016-01-09 03:03:50 +00:00
urilib
======
[RFC-3986](https://tools.ietf.org/html/rfc3986) URI Library for Erlang.
2016-01-09 04:27:38 +00:00
[![Build Status](https://travis-ci.org/gmr/urilib.svg?branch=master)](https://travis-ci.org/gmr/urilib) [![codecov.io](https://codecov.io/github/gmr/urilib/coverage.svg?branch=master)](https://codecov.io/github/gmr/urilib?branch=master)
2016-01-09 04:27:04 +00:00
2016-01-09 04:40:55 +00:00
Example Usage
-------------
```erlang
-include_lib("urilib.h").
2016-01-22 04:04:34 +00:00
URI = urilib:parse("http://foo:bar@www.google.com/search?baz=qux#corgie"),
2016-01-09 04:40:55 +00:00
io:format("Parsed URI: ~p~n", [URI]).
2016-01-22 04:04:34 +00:00
URL = urllib:build({http, undefined, undefined, "www.google.com", undefined, "/search", [{"foo", "bar"}], "baz"}),
2016-01-09 04:40:55 +00:00
io:format("Built URL: ~s~n", [URL]).
```