aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-08-26 19:08:38 +0200
committerLoïc Hoguin <[email protected]>2013-08-26 19:08:38 +0200
commit5347bd3335f45f244f82e5f10da3993d9fdc56a3 (patch)
tree28f79c3d5554ef2cb898dfe8cd751a63a62cb2c5 /src/gun.erl
parente176953cd095e8c65d56461f840a14d53c57a1c1 (diff)
downloadgun-5347bd3335f45f244f82e5f10da3993d9fdc56a3.tar.gz
gun-5347bd3335f45f244f82e5f10da3993d9fdc56a3.tar.bz2
gun-5347bd3335f45f244f82e5f10da3993d9fdc56a3.zip
Add gun:open/2
Diffstat (limited to 'src/gun.erl')
-rw-r--r--src/gun.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gun.erl b/src/gun.erl
index 112ab07..001d332 100644
--- a/src/gun.erl
+++ b/src/gun.erl
@@ -15,6 +15,7 @@
-module(gun).
%% Connection.
+-export([open/2]).
-export([open/3]).
-export([close/1]).
-export([shutdown/1]).
@@ -69,6 +70,9 @@
%% Connection.
+open(Host, Port) ->
+ open(Host, Port, []).
+
open(Host, Port, Opts) ->
case open_opts(Opts) of
ok ->