describing current environment
let reload () =
reload_servers ()
-let dump_env () =
- printf
+let env_to_string () =
+ sprintf
"HTTP Getter %s (the OCaml one!)
cic_dbm:\t%s
cic_dir nuprl_dir rdf_dir dtd_dir servers_file host port my_own_url
dtd_base_url
(match cache_mode with Enc_normal -> "Normal" | Enc_gzipped -> "GZipped")
- conf_file conf_dir (String.concat "\n\t" !servers);
- flush stdout
+ conf_file conf_dir (String.concat "\n\t" !servers)
(* misc *)
-val reload: unit -> unit (* reload servers list *)
-val dump_env : unit -> unit (* dump a textual representation of the
- current http_getter settings *)
+val reload: unit -> unit (* reload servers list *)
+val env_to_string : unit -> string (* dump a textual representation of the
+ current http_getter settings on an output
+ channel*)