Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Http.No_cacheSourceA cache caching nothing, i.e. key always returns None.
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.tget 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.