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 : ?follow:int -> ?headers:Cohttp.Header.t -> Iri.t -> (t option * Types.non_rdf_resource, Types.error) result Lwt.t
val get_exn : ?follow:int -> ?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, query_error) result Lwt.t
val post_exn : ?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, query_error) result Lwt.t
val put_exn : ?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 ] -> ?follow:int -> ?headers:Cohttp.Header.t -> ('a -> (t option * Types.non_rdf_resource) -> 'a Lwt.t) -> 'a -> Iri.t list -> 'a Lwt.t
OCaml

Innovation. Community. Security.