package terminus-cohttp

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

It provides an API call system relying on Cohttp.

type 'a io = 'a Lwt.t
val return : 'a -> 'a io
val map : ('a -> 'b) -> 'a io -> 'b io
val bind : ('a -> 'b io) -> 'a io -> 'b io
val fail : Terminus__S.error -> 'a io
val get : headers:Terminus__S.headers -> url:string -> string io
val post : headers:Terminus__S.headers -> url:string -> string -> string io
val put : headers:Terminus__S.headers -> url:string -> string -> string io
val delete : headers:Terminus__S.headers -> url:string -> string io
OCaml

Innovation. Community. Security.