package caldav
A CalDAV server
Install
Dune Dependency
Authors
Maintainers
Sources
caldav-0.2.4.tbz
sha256=2213432f79494809a8ea5c7726a0a264ab6770c7be74a929c65c39a27339e0a1
sha512=9c7ce48fbafa75ea309fcd49a5792976911bea857c9a3a4b334b9b75b3f65199669bacdfe62b98e34a7b5160883fd5b98d7795fd03aefad6434fa99545e26425
doc/caldav.webmachine/Webmachine/Rd/index.html
Module Webmachine.Rd
Source
The Rd
module is the means by which handlers access and manipulate request-specific information.
Source
type 'body t = {
version : Cohttp.Code.version;
meth : Cohttp.Code.meth;
uri : Uri.t;
req_headers : Cohttp.Header.t;
req_body : 'body;
resp_headers : Cohttp.Header.t;
resp_body : 'body;
resp_redirect : bool;
dispatch_path : string;
path_info : (string * string) list;
} constraint 'body = [> `Empty ]
Source
val make :
?dispatch_path:string ->
?path_info:(string * string) list ->
?resp_headers:Cohttp.Header.t ->
?resp_body:'a ->
?resp_redirect:bool ->
?req_body:'a ->
request:Cohttp.Request.t ->
unit ->
'a t
make ~request ()
returns a 'body t
with the following fields pouplated from the request
argument:
uri
;version
;meth
; andreq_headers
All other fields will be populated with default values unless they are provided as optional arguments
with_req_headers f t
is equivalent to { t with req_headers = f (t.req_headers) }
with_resp_headers f t
is equivalent to { t with resp_headers = f (t.resp_headers) }
lookup_path_info_exn k t
is equivalent List.assoc k t.path_info
, which will throw a Not_found
exception if the lookup fails. The non-_exn
version will return an optional result.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>