From e4bb2ffc7774d5d10cafbbf79ec201c714f61b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 16 May 2013 19:16:13 +0200 Subject: Use the ranch_tcp:opts() type in cowboy:start_http/4 spec --- src/cowboy.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -> -- cgit v1.2.3