package jsonrpc

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'id t = {
  1. id : 'id;
  2. method_ : string;
  3. params : Yojson.Safe.t option;
}
val params : _ t -> (Yojson.Safe.t -> 'a) -> ('a, string) Result.t
val create : ?params:Yojson.Safe.t -> id:'id -> method_:string -> unit -> 'id t
type request = Id.t t
type notification = unit t
type either = Id.t option t
val either_of_yojson : Yojson.Safe.t -> either
val yojson_of_either : either -> Yojson.Safe.t
val yojson_of_notification : notification -> Yojson.Safe.t
val yojson_of_request : request -> Yojson.Safe.t
OCaml

Innovation. Community. Security.