diff options
author | Loïc Hoguin <[email protected]> | 2013-08-26 19:08:38 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-08-26 19:08:38 +0200 |
commit | 5347bd3335f45f244f82e5f10da3993d9fdc56a3 (patch) | |
tree | 28f79c3d5554ef2cb898dfe8cd751a63a62cb2c5 /src/gun.erl | |
parent | e176953cd095e8c65d56461f840a14d53c57a1c1 (diff) | |
download | gun-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.erl | 4 |
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 -> |