package eliom

  1. Overview
  2. Docs
Advanced client/server Web and mobile framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

12.0.1.tar.gz
md5=4f56c3914f8308844e076957eb2f100d
sha512=c3e84bb00c53811fbe5453d8418b5afac5df1d54431b362e433506bbdb547825d6c83462c9ec7b85bb92186e01be98699aa1febc3a03a04548b9641128d93612

doc/eliom.server/Eliom/index.html

Module EliomSource

Sourceval set_app_name : string -> unit

Set your application name. Use this if you want to make it possible to link your Eliom application statically and to have several Eliom applications on the same Web server. See also parameter ?app_names of instruction or Eliom.run.

Sourceval default_app_name : string

The default application name, if you don't specify any

Sourceval run : ?app:string -> ?xhr_links:bool -> ?data_timeout: ([< Eliom_common.cookie_level ] * Eliom_common_base.scope_hierarchy option * float option) -> ?service_timeout: ([< Eliom_common.cookie_level ] * Eliom_common_base.scope_hierarchy option * float option) -> ?persistent_timeout: ([< Eliom_common.cookie_level ] * Eliom_common_base.scope_hierarchy option * float option) -> ?max_service_sessions_per_group:(int * bool) -> ?max_volatile_data_sessions_per_group:(int * bool) -> ?max_persistent_data_sessions_per_group:int -> ?max_service_tab_sessions_per_group:(int * bool) -> ?max_volatile_data_tab_sessions_per_group:(int * bool) -> ?max_persistent_data_tab_sessions_per_group:int -> ?max_anonymous_services_per_session:(int * bool) -> ?secure_cookies:bool -> ?application_script:(bool * bool) -> ?enable_wasm:bool -> ?global_data_caching:(string list * int) option -> ?html_content_type:string -> ?ignored_get_params:(string * Re.re) -> ?ignored_post_params:(string * Re.re) -> ?omitpersistentstorage:Eliom_common.omitpersistentstorage_rule list option -> unit -> Ocsigen_server.instruction

run ?app () run Eliom application app under current site. Use this to build a static executable without configuration file. Default value of ?app is default_app_name. Other optional values correspond to Eliom configuration for this site.

When ?enable_wasm is set to true, the server will generate a detection script that loads the WASM version of your client code if the browser supports WebAssembly, with automatic fallback to JavaScript otherwise. If not specified, the global default is used (see Eliom_config.set_enable_wasm), which is false.