package ocplib-resto

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

Typed path argument.

module Path : sig ... end

Parametrized path to services.

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

Services.

val service : ?description:string -> input:'input Json_encoding.encoding -> output:'output Json_encoding.encoding -> ('prefix, 'params) Path.path -> ('prefix, 'params, 'input, 'output) service
val prefix : ('prefix, 'inner_prefix) Path.path -> ('inner_prefix, 'params, 'input, 'output) service -> ('prefix, 'params, 'input, 'output) service
val forge_request : (unit, 'params, 'input, 'output) service -> 'params -> 'input -> string list * json
val read_answer : (unit, '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.