123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354# 1 "src/lib/eliom_config.client.ml"(* Ocsigen
* http://www.ocsigen.org
* Module eliom_sessions.ml
* Copyright (C) 2009 Vincent Balat
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, with linking exception;
* either version 2.1 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*)openJs_of_ocamlletget_default_hostname()=Url.Current.hostletget_default_port()=80(*VVV take from server? !!!!!!!!! *)(*RRR ??? Url.default_http_port ???*)letget_default_sslport()=443(*VVV take from server? !!!!!!!!! *)(*RRR ??? replace by Url.default_https_port ???*)letdefault_protocol_is_https()=Url.Current.protocol="https"(*VVV take from server? !!!!!!!!! *)(*RRR ??? replace by Url.default_https_port ???*)letget_default_links_xhr()=true(*BBB take from server? !!!!!!!!!! *)letdebug_timings=reffalseletis_tracing=reffalseletset_tracingvalue=is_tracing:=valueletget_tracing()=!is_tracing(* let () = *)(* if Js.to_string Dom_html.window##location##hash = "#__trace" then *)(* set_tracing true; *)(* if Js.to_string Dom_html.window##location##hash = "#__timings" then *)(* debug_timings := true *)letget_debugmode()=tryJs.to_boolJs.Unsafe.global##.___eliom_debug_mode_with_->false