Skip to content

Commit

Permalink
Change uri format api to to_* functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
archaelus committed May 23, 2012
1 parent b39192e commit a2a114d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/uri.erl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

-export([parse/1
,parse/2
,format/1
,to_iolist/1
,to_binary/1
]).

-type scheme() :: atom().
Expand All @@ -30,5 +31,8 @@ parse(Uri) ->
parse(Uri, Opts) ->
uri_parser:parse(Uri, Opts).

format(Uri) when is_tuple(Uri) ->
to_iolist(Uri) when is_tuple(Uri) ->
uri_format:to_iolist(Uri).

to_binary(Uri) when is_tuple(Uri) ->
uri_format:to_binary(Uri).

0 comments on commit a2a114d

Please sign in to comment.