Module Eliom.Registration
Client-side service registration.
The interface is meant to be compatible with server-side Registration.
See the manual chapter on client-side services for details.
type 'a kindtype browser_content = [ | `Browser
]type 'a application_content = [ | `Appl of 'a
]module Html :
Registration_sigs.S
with type page = Html_types.html Content.Html.elt
and type options = unit
and type return = Service.non_ocaml
and type result = browser_content kindmodule Action :
Registration_sigs.S
with type page = unit
and type options = [ `Reload | `NoReload ]
and type return = Service.non_ocaml
and type result = browser_content kindmodule Unit :
Registration_sigs.S
with type page = unit
and type options = unit
and type return = Service.non_ocaml
and type result = browser_content kindtype appl_service_options = {do_not_launch : bool;
}Has no effect on client; for compatibility with server
module App (_ : Registration_sigs.APP_PARAM) : sig ... endtype _ redirection = | Redirection : (unit, unit, Service.get, _, _, _, _, [ `WithoutSuffix ], unit, unit, 'a) Service.t -> 'a redirection
module Redirection :
Registration_sigs.S_poly_with_send
with type 'a page = Service.non_ocaml redirection
and type options =
[ `MovedPermanently
| `Found
| `SeeOther
| `NotModified
| `NotNodifed
| `UseProxy
| `TemporaryRedirect ]
and type 'a return = Service.non_ocaml
and type 'a result = browser_content kindmodule Any :
Registration_sigs.S_poly_with_send
with type 'a page = 'a kind
and type options = unit
and type 'a return = Service.non_ocaml
and type 'a result = 'a kindval appl_self_redirect :
('page -> [< 'a application_content | browser_content ] kind Lwt.t) ->
'page ->
'appl application_content kind Lwt.tFor compatibility with server-side appl_self_redirect
val set_status : Cohttp.Code.status -> unitDoes nothing on the client, where there is no HTTP response to send: for %shared service handlers. See the server-side set_status.
val get_status : unit -> Cohttp.Code.status optionget_status () is None on the client.