package rpclib

  1. Overview
  2. Docs
type version =
  1. | V1
  2. | V2
exception Malformed_method_request of string
exception Malformed_method_response of string
val new_id : unit -> int64
val to_buffer : Rpc.t -> Stdlib.Buffer.t -> unit
val to_string : Rpc.t -> string
val to_a : empty:(unit -> 'a) -> append:('a -> string -> unit) -> Rpc.t -> 'a
  • deprecated
val string_of_call : ?version:version -> Rpc.call -> string
val string_of_response : ?id:Rpc.t -> ?version:version -> Rpc.response -> string
val of_string : ?strict:bool -> string -> Rpc.t
val of_a : next_char:('a -> char option) -> 'a -> Rpc.t
  • deprecated
val a_of_response : ?id:Rpc.t -> ?version:version -> empty:(unit -> 'a) -> append:('a -> string -> unit) -> Rpc.response -> 'a
  • deprecated
val json_of_response : ?id:Rpc.t -> version -> Rpc.response -> Rpc.t
val json_of_error_object : ?data:Rpc.t option -> int64 -> string -> Rpc.t
val get : string -> (string * 'a) list -> 'a
val call_of_string : string -> Rpc.call
val version_id_and_call_of_string : string -> version * Rpc.t * Rpc.call
val version_id_and_call_of_string_option : string -> version * Rpc.t option * Rpc.call
val response_of_string : ?strict:bool -> string -> Rpc.response
val response_of_in_channel : Stdlib.in_channel -> Rpc.response