package ldp

  1. Overview
  2. Docs

Creating a module to perform specialized queries over the given Http module. See the corresponding functions in Http for more information about arguments.

Parameters

module H : Http
module W : Ct_wrapper

Signature

type t = W.t
val dbg : string -> unit Lwt.t
val get : ?headers:Cohttp.Header.t -> Iri.t -> (t option * Types.non_rdf_resource) Lwt.t
val post : ?headers:Cohttp.Header.t -> ?data:t -> ?slug:string -> Iri.t -> (t option * Types.meta) Lwt.t
val put : ?headers:Cohttp.Header.t -> ?data:t -> Iri.t -> (t option * Types.meta) Lwt.t
val fold_get : ?onerror:[ `Fail | `Ignore | `Report of exn -> unit Lwt.t ] -> ?headers:Cohttp.Header.t -> ('a -> (t option * Types.non_rdf_resource) -> 'a Lwt.t) -> 'a -> Iri.t list -> 'a Lwt.t