0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Use the ranch_tcp:opts() type in cowboy:start_http/4 spec

This commit is contained in:
Loïc Hoguin 2013-05-16 19:16:13 +02:00
parent bb89bf6f8d
commit e4bb2ffc77

View file

@ -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 ->