package eliom

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

Install

Dune Dependency

Authors

Maintainers

Sources

10.3.0.tar.gz
md5=36c211d19776e6362feb57a4913efc11
sha512=9d8d3aadbd2174fe4edeba9e535cfa8ed974db5e406f0a6e2669a71e208f459da7ca8060628f3f19957b7b1911083a373653abf7e5385bb16d2ccee4ba49e80a

doc/src/eliom.server/eliom_lazy.ml.html

Source file eliom_lazy.ml

1
2
3
4
5
6
7
8
# 1 "src/lib/eliom_lazy.server.ml"
type 'a request = {data : unit -> 'a; mark : 'a request Eliom_wrap.wrapper}
[@@warning "-69"]

let mark = Eliom_wrap.create_wrapper (fun l -> l.data ())
let from_fun data = {data; mark}
let from_val v = {data = (fun () -> v); mark}
let force v = v.data ()
OCaml

Innovation. Community. Security.