package resto-directory

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type ('o, 'e) t = [
  1. | `Ok of 'o
  2. | `OkChunk of 'o
  3. | `OkStream of 'o stream
  4. | `Created of string option
  5. | `No_content
  6. | `Unauthorized of 'e option
  7. | `Forbidden of 'e option
  8. | `Not_found of 'e option
  9. | `Conflict of 'e option
  10. | `Gone of 'e option
  11. | `Error of 'e option
]

Return type for service handler

and 'a stream = {
  1. next : unit -> 'a option Lwt.t;
  2. shutdown : unit -> unit;
}
val return : 'o -> ('o, 'e) t Lwt.t
val return_stream : 'o stream -> ('o, 'e) t Lwt.t
OCaml

Innovation. Community. Security.