This is server API (go to client)

Module Eliom_config

module Eliom_config : sig..end

returns the hostname declared in the config file (<host defaulthostname="...">).


val get_default_hostname : unit -> string
val get_default_port : unit -> int

returns the port number declared in the config file (<host defaulthttpport="...">).

val get_default_sslport : unit -> int

returns the https port number declared in the config file (<host defaulthttpsport="...">).

val get_config_default_charset : unit -> string

returns the default charset for this site

val get_config : unit -> Simplexmlparser.xml list

returns the information of the configuration file concerning that site (between <site> and </site>).

Warning: You must call that function during the initialisation of your module (not during a Lwt thread or a service) otherwise it will raise the exception Eliom_common.​Eliom_site_information_not_available. If you want to build a statically linkable module, you must call this function inside the initialisation function given to Eliom_services.​register_eliom_module.

val get_config_info : unit -> Ocsigen_extensions.config_info

returns the information concerning the request from the configuration files.