aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_requests_sup.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_requests_sup.erl')
-rw-r--r--src/cowboy_requests_sup.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cowboy_requests_sup.erl b/src/cowboy_requests_sup.erl
index 87d5352..ddd8d3b 100644
--- a/src/cowboy_requests_sup.erl
+++ b/src/cowboy_requests_sup.erl
@@ -32,7 +32,13 @@ start_request(ListenerPid, Socket, Transport, Protocol, Opts) ->
%% supervisor.
--spec init([]) -> {ok, {{simple_one_for_one, 0, 1}, [{_, _, _, _, _, _}, ...]}}.
+-spec init([]) -> {'ok', {{'simple_one_for_one', 0, 1}, [{
+ any(), {atom() | tuple(), atom(), 'undefined' | [any()]},
+ 'permanent' | 'temporary' | 'transient',
+ 'brutal_kill' | 'infinity' | non_neg_integer(),
+ 'supervisor' | 'worker',
+ 'dynamic' | [atom() | tuple()]}]
+}}.
init([]) ->
{ok, {{simple_one_for_one, 0, 1}, [{?MODULE, {?MODULE, start_request, []},
temporary, brutal_kill, worker, [?MODULE]}]}}.