mod_http_upload: Update function specification
The handle_call/3 function now responds to some requests.
This commit is contained in:
parent
f58db83523
commit
a1fe316565
|
@ -265,7 +265,11 @@ init({ServerHost, Opts}) ->
|
||||||
get_url = expand_host(str:strip(GetURL, right, $/), ServerHost),
|
get_url = expand_host(str:strip(GetURL, right, $/), ServerHost),
|
||||||
service_url = ServiceURL}}.
|
service_url = ServiceURL}}.
|
||||||
|
|
||||||
-spec handle_call(_, {pid(), _}, state()) -> {noreply, state()}.
|
-spec handle_call(_, {pid(), _}, state())
|
||||||
|
-> {reply, {ok, pos_integer(), binary(),
|
||||||
|
pos_integer() | undefined,
|
||||||
|
pos_integer() | undefined}, state()} |
|
||||||
|
{reply, {error, binary()}, state()} | {noreply, state()}.
|
||||||
|
|
||||||
handle_call({use_slot, Slot}, _From, #state{file_mode = FileMode,
|
handle_call({use_slot, Slot}, _From, #state{file_mode = FileMode,
|
||||||
dir_mode = DirMode,
|
dir_mode = DirMode,
|
||||||
|
|
Loading…
Reference in New Issue