Ulf 3 lat temu
committed by GitHub
rodzic
commit
5fea7a1741
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 6 dodań i 0 usunięć
  1. +6
    -0
      src/ibrowse.erl

+ 6
- 0
src/ibrowse.erl Wyświetl plik

@ -91,6 +91,7 @@
set_max_sessions/3,
set_max_pipeline_size/3,
set_max_attempts/3,
set_download_dir/1,
set_dest/3,
trace_on/0,
trace_off/0,
@ -496,6 +497,11 @@ set_max_pipeline_size(Host, Port, Max) when is_integer(Max), Max > 0 ->
set_max_attempts(Host, Port, Max) when is_integer(Max), Max > 0 ->
gen_server:call(?MODULE, {set_config_value, {max_attempts, Host, Port}, Max}).
%% @doc set the download directory where the files are stored
%% @spec set_download_dir(Dir::string()) -> ok
set_download_dir(Dir) ->
gen_server:call(?MODULE, {set_config_value, download_dir, Dir}).
do_send_req(Conn_Pid, Parsed_url, Headers, Method, Body, Options, Timeout) ->
case catch ibrowse_http_client:send_req(Conn_Pid, Parsed_url,
Headers, Method, ensure_bin(Body),

Ładowanie…
Anuluj
Zapisz