package ocplib-resto

  1. Overview
  2. Docs
module Arg : sig ... end

Typed path argument.

module Path : sig ... end

Parametrized path to services.

type ('params, 'input, 'output) service = (unit, 'params, 'input, 'output) Resto_impl.service

Services.

val service : ?description:string -> input:'input Json_encoding.encoding -> output:'output Json_encoding.encoding -> 'params Path.path -> ('params, 'input, 'output) service
val forge_request : ('params, 'input, 'output) service -> 'params -> 'input -> string list * json
val read_answer : ('params, 'input, 'output) service -> json -> ('output, string) Result.result
module Make (Repr : Json_repr.Repr) : sig ... end
module Description : sig ... end

Service directory description

OCaml

Innovation. Community. Security.