35
35
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
38
39
supervisor:start_child(?MODULE, Args).
40
42
%%%=========================================================================
42
44
%%%=========================================================================
44
47
RestartStrategy = simple_one_for_one,
49
52
StartFunc = {httpc_handler, start_link, Args},
55
57
ChildSpec = {Name, StartFunc, Restart, Shutdown, Type, Modules},
56
59
{ok, {{RestartStrategy, MaxR, MaxT}, [ChildSpec]}}.