module Eliom_client:sig
..end
val change_page : ?absolute:bool ->
?absolute_path:bool ->
?https:bool ->
service:('a, 'b, [< Eliom_service.service_kind ], [< Eliom_service.suff ],
'd, 'e, [< Eliom_service.registrable ],
Eliom_registration.appl_service)
Eliom_service.service ->
?hostname:string ->
?port:int ->
?fragment:string ->
?keep_nl_params:[ `All | `None | `Persistent ] ->
?nl_params:Eliom_parameter.nl_params_set ->
?keep_get_na_params:bool -> 'a -> 'b -> unit Lwt.t
val call_caml_service : ?absolute:bool ->
?absolute_path:bool ->
?https:bool ->
service:('a, 'b, [< Eliom_service.service_kind ], [< Eliom_service.suff ],
'd, 'e, [< Eliom_service.registrable ],
'return Eliom_parameter.caml)
Eliom_service.service ->
?hostname:string ->
?port:int ->
?fragment:string ->
?keep_nl_params:[ `All | `None | `Persistent ] ->
?nl_params:Eliom_parameter.nl_params_set ->
?keep_get_na_params:bool -> 'a -> 'b -> 'return Lwt.t
If the service raises an exception, the call to the
call_caml_service
raises an exception whose argument describes the server-side
exception.
(NB that we cannot send the original exception as-it, because
OCaml permits the marshalling of exceptions ...)
val exit_to : ?absolute:bool ->
?absolute_path:bool ->
?https:bool ->
service:('a, 'b, [< Eliom_service.service_kind ], [< Eliom_service.suff ],
'd, 'e, [< Eliom_service.registrable ],
[< Eliom_registration.non_caml_service ])
Eliom_service.service ->
?hostname:string ->
?port:int ->
?fragment:string ->
?keep_nl_params:[ `All | `None | `Persistent ] ->
?nl_params:Eliom_parameter.nl_params_set ->
?keep_get_na_params:bool -> 'a -> 'b -> unit
"\r\n"
.val window_open : window_name:Js.js_string Js.t ->
?window_features:Js.js_string Js.t ->
?absolute:bool ->
?absolute_path:bool ->
?https:bool ->
service:('a, unit, [< Eliom_service.get_service_kind ],
[< Eliom_service.suff ], 'b, unit, [< Eliom_service.registrable ],
'c)
Eliom_service.service ->
?hostname:string ->
?port:int ->
?fragment:string ->
?keep_nl_params:[ `All | `None | `Persistent ] ->
?nl_params:Eliom_parameter.nl_params_set ->
?keep_get_na_params:bool -> 'a -> Dom_html.window Js.t
window.open
).val call_service : ?absolute:bool ->
?absolute_path:bool ->
?https:bool ->
service:('a, 'b, [< Eliom_service.service_kind ], [< Eliom_service.suff ],
'd, 'e, [< Eliom_service.registrable ], 'return)
Eliom_service.service ->
?hostname:string ->
?port:int ->
?fragment:string ->
?keep_nl_params:[ `All | `None | `Persistent ] ->
?nl_params:Eliom_parameter.nl_params_set ->
?keep_get_na_params:bool -> 'a -> 'b -> string Lwt.t
val onload : (unit -> unit) -> unit
It complements as a toplevel expression in the client module with the side effect from client values while creating the response of a service: While the latter are executed each time the service has been called; the former is executed only once; but each at a time where the document is in place:
val onunload : (unit -> unit) -> unit
val wait_load_end : unit -> unit Lwt.t