Module JsonrpcSource

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