package jsonrpc

  1. Overview
  2. Docs
module Structured : sig ... end
type 'id t = {
  1. id : 'id;
  2. method_ : string;
  3. params : Structured.t option;
}
val create : ?params:Structured.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 : Json.t -> either
val yojson_of_either : either -> Json.t
val yojson_of_notification : notification -> Json.t
val yojson_of_request : request -> Json.t
OCaml

Innovation. Community. Security.