package ocplib-resto

  1. Overview
  2. Docs
module StringMap : sig ... end
val map_option : ('a -> 'b) -> 'a option -> 'b option
module Ty : sig ... end
module Arg : sig ... end
module Path : sig ... end
type ('prefix, 'params, 'input, 'output) service = {
  1. description : string option;
  2. path : ('prefix, 'params) Path.path;
  3. input : 'input Json_encoding.encoding;
  4. output : 'output Json_encoding.encoding;
}
val service : ?description:string -> input:'a Json_encoding.encoding -> output:'b Json_encoding.encoding -> ('c, 'd) Path.path -> ('c, 'd, 'a, 'b) service
val prefix : ('a, 'b) Path.path -> ('b, 'c, 'd, 'e) service -> ('a, 'c, 'd, 'e) service
module Make (Repr : Json_repr.Repr) : sig ... end
include sig ... end
val forge_request_args : (unit, 'p) Path.path -> 'p -> string list
val forge_request : (unit, 'p, 'i, 'o) service -> 'p -> 'i -> string list * Json_repr.Ezjsonm.value
val read_answer : (unit, 'p, 'i, 'o) service -> Json_repr.Ezjsonm.value -> ('o, string) Result.result
module Description : sig ... end
OCaml

Innovation. Community. Security.