New service and registration API
Eliom 6.0 provides new, friendlier service creation and registration APIs. Creation of regular services and non-attached co-services (which we now refer to as pathless services) is done via Eliom_service.create and the create functions under Eliom_registration. The ~path argument specifies whether the service will be standard or pathless, while the ~meth argument specifies the HTTP method.
POST services no longer require a fallback. You may nevertheless want to register a GET service on the same URL for reloads to behave smoothly.
We use the standard features of the OCaml module system, as opposed to pa_include (which has been removed). As a consequence, you may need to refer to Eliom_service_sigs.S and Eliom_registration_sigs (especially Eliom_registration_sigs.S and Eliom_registration_sigs.S_with_create) for documentation.
Updated TyXML APIs
Eliom 6.0 relies on TyXML 4.0, whose APIs have been revised. Eliom inherits and follows TyXML's new naming conventions. Notably,
- we use Html (not Html5) in all module names (including under Eliom_registration).
- the unary attribute combinators (e.g., a_checked) now take a unit argument.
- The printer modules (e.g., Eliom_content.Html.Printer) are now compatible with OCaml's Format module.
- The signature of Eliom_client.onunload has changed.
- The extension modules (Eliom_atom, Eliom_openid) have been retired. Compile them outside Eliom if you need them.
Please help us maintain this page by notifying us of any missing incompatible change. Thank you!