package resto

  1. Overview
  2. Docs

Module type Resto.ENCODINGSource

An ENCODING is a generic interface for modules that provide conversion from values to a different representation and back. This is used to abstract resto over specific representations of values.

See Resto_json for example of possible instantiation.

Sourcetype 'a t
Sourcetype schema
Sourceval unit : unit t
Sourceval untyped : string t
Sourceval conv : ('a -> 'b) -> ('b -> 'a) -> 'b t -> 'a t
Sourceval schema : ?definitions_path:string -> 'a t -> schema
Sourceval description_request_encoding : Description.request t
Sourceval description_answer_encoding : schema Description.directory t
OCaml

Innovation. Community. Security.