package ocplib-resto

  1. Overview
  2. Docs
Minimal OCaml library for type-safe HTTP/JSON RPCs.

Install

Dune Dependency

Authors

Maintainers

Sources

ocplib-resto_0.1.tar.gz
sha256=bee2c7a395f2fc1518584d5feb13696d590a7eb4dbd39f40605dc368042e0271
md5=0433b7493bf8cd05fcb164e7482fa12e

doc/ocplib-resto.directory/RestoDirectory/Answer/index.html

Module RestoDirectory.Answer

type 'a answer = {
  1. code : int;
  2. body : 'a option;
}

Return type for service handler

val ok : 'a -> 'a answer
val return : 'a -> 'a answer Lwt.t
OCaml

Innovation. Community. Security.