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:
parent
bb89bf6f8d
commit
e4bb2ffc77
1 changed files with 1 additions and 1 deletions
|
@ -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 ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue