package tiny_httpd
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Minimal HTTP server using threads
Install
dune-project
Dependency
Authors
Maintainers
Sources
tiny_httpd-0.18.tbz
sha256=ef806444b2f9e53d10976b9124902560d0855124433537080e6d0bec48d202e5
sha512=539530eb9e511b6ed4d69bb083f421d5f51b183c347c116a52f24210f30b1c9b14a029e2b82d6e0d698c74ab75ba5c307a1976711558a1419df287335b2a8f51
doc/src/tiny_httpd.core/log.ml.html
Source file log.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26# 1 "src/core/log.logs.ml" (* Use Logs *) let log_src = Logs.Src.create "tiny_httpd" module Log = (val Logs.(src_log log_src)) let info k = Log.info (fun fmt -> k (fun x -> fmt ?header:None ?tags:None x)) let debug k = Log.debug (fun fmt -> k (fun x -> fmt ?header:None ?tags:None x)) let error k = Log.err (fun fmt -> k (fun x -> fmt ?header:None ?tags:None x)) let setup ~debug () = let mutex = Mutex.create () in Logs.set_reporter_mutex ~lock:(fun () -> Mutex.lock mutex) ~unlock:(fun () -> Mutex.unlock mutex); Logs.set_reporter @@ Logs.format_reporter (); Logs.set_level ~all:true (Some (if debug then Logs.Debug else Logs.Info)) let dummy = false let fully_disable () = Logs.Src.set_level log_src None
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>