package ldp_js

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Performing HTTP queries with no debug.

val dbg : string -> unit Lwt.t

Debugging function taking a debug message.

val call : ?body:Cohttp_lwt.Body.t -> ?headers:Cohttp.Header.t -> Cohttp.Code.meth -> Iri.t -> (Cohttp.Response.t * Cohttp_lwt.Body.t) Lwt.t

call meth iri performs a HTTP query to iri with the method meth. Optional parameters are:

  • body is used to provide the request body, empty by default.
  • headers is the header of the request, empty by default.
OCaml

Innovation. Community. Security.