package ez_api

  1. Overview
  2. Docs
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 ]) result
val res_from_string : 'a. 'a io -> ('a Json_encoding.encoding -> ('a, 'e) result Json_encoding.encoding) -> (('a, 'e) result -> 'b) -> string -> ('b, [> EzEncoding.destruct_error ]) result
OCaml

Innovation. Community. Security.