Page
Library
Module
Module type
Parameter
Class
Class type
Source
Ldp.HttpSourceProviding high-level HTTP queries.
The set of known container types.
type_is_container iri returns whether iri is a container type, comparing to known container_types.
is_container ~iri g returns whether iri is a container, according to graph g. If iri is not provided, the name if the graph is used intead.
response_metadata iri (resp, body) creates a Types.meta structure with the given iri and from the http response and body.
val parse_graph :
?g:Rdf.Graph.graph ->
Iri.t ->
Ct.t ->
string ->
(Rdf.Graph.graph, Types.error) resultparse_graph iri content_type body tries to parse graph in body according to the content_type. If no graph g is provided, a new one with name iri is created. The graph (the enriched graph or the created one) or an error is returned.
dummy_request name returns a module which can be used in applications instead of a normal Requests module, typically before some initializations. dbg does nothing and call will raise Not_initialized name.
type cache_find_response = | Not_foundThe resource was not found in cache.
*)| Found of Cohttp.Response.t * stringThe resource was found in cache, with the given response and body as string.
*)| If_error of Cohttp.Response.t -> string -> (Cohttp.Response.t * string) Lwt.tThe resource is in the cache, but it should be used only in case of error after performing the request.
*)The different ways the find function of a cache implementation can respond.
Creates a cache from implementation of cache operations.
The high-level HTTP module created from a Requests implementation.
Creates a Http module using the given cache.
These are queries used to send and receive data of a given content-type. The following module types and the Http_ct module can be used to create functions to perform such queries.
Mapping values of a given content-type to and from strings.