aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-05-16 19:16:13 +0200
committerLoïc Hoguin <[email protected]>2013-05-16 19:16:13 +0200
commite4bb2ffc7774d5d10cafbbf79ec201c714f61b2d (patch)
treebeae96a09f5af54eb762b51b95122664d8828d2f
parentbb89bf6f8d9cb652b758568ead5f8ed21b09add6 (diff)
downloadcowboy-e4bb2ffc7774d5d10cafbbf79ec201c714f61b2d.tar.gz
cowboy-e4bb2ffc7774d5d10cafbbf79ec201c714f61b2d.tar.bz2
cowboy-e4bb2ffc7774d5d10cafbbf79ec201c714f61b2d.zip
Use the ranch_tcp:opts() type in cowboy:start_http/4 spec
-rw-r--r--src/cowboy.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy.erl b/src/cowboy.erl
index ecbd96f..0c31266 100644
--- a/src/cowboy.erl
+++ b/src/cowboy.erl
@@ -37,7 +37,7 @@
-export_type([onresponse_fun/0]).
%% @doc Start an HTTP listener.
--spec start_http(ranch:ref(), non_neg_integer(), any(),
+-spec start_http(ranch:ref(), non_neg_integer(), ranch_tcp:opts(),
cowboy_protocol:opts()) -> {ok, pid()}.
start_http(Ref, NbAcceptors, TransOpts, ProtoOpts)
when is_integer(NbAcceptors), NbAcceptors > 0 ->