package ocplib-resto

  1. Overview
  2. Docs
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