package ldp
Library to build LDP applications
Install
Dune Dependency
Authors
Maintainers
Sources
ocaml-ldp-0.5.0.tar.gz
md5=fee838e51dd241528ad271c6ef56345a
sha512=cbb718fb10fbc12c3b2f38a57d87e6af13e108699bf5a812cc490ed3397ed9c0f5d2793b5848c7e6d75a47dd10cfa87ba8bacc119f01733f22cc116ea045b27f
doc/ldp/Ldp/Http/module-type-Cache/index.html
Module type Http.Cache
Source
val clear : unit -> unit Lwt.t
Clear cache.
val get :
(?headers:Cohttp.Header.t ->
Iri.t ->
(Cohttp.Response.t * Cohttp_lwt.Body.t) Lwt.t) ->
?headers:Cohttp.Header.t ->
Iri.t ->
(Cohttp.Response.t * string) Lwt.t
get call ?headers iri
looks up in cache for iri
and headers
and returns the cached response, if any. Else uses call ?headers iri
to retrieve the resource and stores it if request status is ok (code 2XX). The cookie
header is removed from provided headers when looking and storing into cache.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>