package ez_api

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type _ io =
  1. | Empty : unit io
  2. | Json : 'a Json_encoding.encoding -> 'a io
  3. | Raw : Mime.t list -> string io
val to_string : 'a. 'a io -> 'a -> string
val from_string : 'a. 'a io -> ('a -> 'b) -> string -> ('b, [> EzEncoding.destruct_error ]) Stdlib.result
val res_from_string : 'a. 'a io -> ('a Json_encoding.encoding -> ('a, 'e) Stdlib.result Json_encoding.encoding) -> (('a, 'e) Stdlib.result -> 'b) -> string -> ('b, [> EzEncoding.destruct_error ]) Stdlib.result
OCaml

Innovation. Community. Security.