1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374# 1 "src/lib/eliom_config.server.ml"(* Ocsigen
* http://www.ocsigen.org
* Copyright (C) 2010 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.
*)letget_default_hostname()=letsitedata=Eliom_request_info.find_sitedata"get_default_hostname"insitedata.Eliom_common.config_info.Ocsigen_extensions.default_hostnameletget_default_port()=letsitedata=Eliom_request_info.find_sitedata"get_default_port"insitedata.Eliom_common.config_info.Ocsigen_extensions.default_httpportletget_default_sslport()=letsitedata=Eliom_request_info.find_sitedata"get_default_sslport"insitedata.Eliom_common.config_info.Ocsigen_extensions.default_httpsportletdefault_protocol_is_https()=letsitedata=Eliom_request_info.find_sitedata"default_protocol_is_https"insitedata.Eliom_common.config_info.Ocsigen_extensions.default_protocol_is_httpsletget_default_links_xhr()=letsitedata=Eliom_request_info.find_sitedata"get_default_links_xhr"insitedata.Eliom_common.default_links_xhr#getletset_default_links_xhr?override_configfile:_v=letsitedata=Eliom_request_info.find_sitedata"set_default_links_xhr"insitedata.Eliom_common.default_links_xhr#setvletget_config_default_charset_spsp=Ocsigen_charset_mime.default_charsetsp.Eliom_common.sp_request.Ocsigen_extensions.request_config.Ocsigen_extensions.charset_assocletget_config_default_charset()=letsp=Eliom_common.get_sp()inget_config_default_charset_spspletget_config_info_spsp=sp.Eliom_common.sp_request.Ocsigen_extensions.request_configletget_config_info()=letsp=Eliom_common.get_sp()inget_config_info_spspletget_config()=matchEliom_common.global_register_allowed()with|Some_->!Eliommod.config|None->raise(Eliom_common.Eliom_site_information_not_available"Eliom_config.get_config")letparse_config?pcdata?other_elementselements=Ocsigen_extensions.Configuration.process_elements~in_tag:!Eliommod.config_in_tag?pcdata?other_elements~elements(get_config())letget_debugmode=Ocsigen_config.get_debugmode