package caldav
A CalDAV server
Install
Dune Dependency
Authors
Maintainers
Sources
caldav-0.2.2.tbz
sha256=63a8818a537c443118e5ff710cc79059ce79c310744854c25ef77f25040f2724
sha512=52e28b504538b6acb7da8f41610f92cbc32716b951d9daa120025c1f2900fc56be21601c7b3b19c519171d2ee1cc4db316e1e0fdddad6a28e84999de35f6ac54
doc/src/caldav.webmachine/rd.ml.html
Source file rd.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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
open Cohttp type 'body t = { version : Code.version ; meth : Code.meth ; uri : Uri.t ; req_headers : Header.t ; req_body : 'body ; resp_headers : Header.t ; resp_body : 'body ; resp_redirect : bool ; dispatch_path : string ; path_info : (string * string) list } constraint 'body = [> `Empty] let make ?(dispatch_path="") ?(path_info=[]) ?(resp_headers=Header.init ()) ?(resp_body=`Empty) ?(resp_redirect=false) ?(req_body=`Empty) ~request () = { uri = Uri.of_string request.Request.resource ; version = request.Request.version ; meth = request.Request.meth ; req_headers = request.Request.headers ; resp_headers ; req_body ; resp_body ; resp_redirect ; dispatch_path ; path_info } let with_req_headers f t = { t with req_headers = f t.req_headers } let with_resp_headers f t = { t with resp_headers = f t.resp_headers } let lookup_path_info_exn key t = List.assoc key t.path_info let lookup_path_info key t = try Some(lookup_path_info_exn key t) with Not_found -> None let redirect location t = with_resp_headers (fun header -> Header.add header "location" location) { t with resp_redirect = true }
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>