package rpclib

  1. Overview
  2. Docs
A library to deal with RPCs in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

rpclib-9.0.0.tbz
sha256=ce23eb756c028d9374bd19823296bddb7c237d3f055452d30d1cf7d15216e963
sha512=d4dfd7a9ee1b7996c24819ac1895925af0ad732f117c6e06cd28c215b14aa094dbd045e44d7f84c0eeb7ab807ed970d6879c29d07b02377fcb928325124ba7f6

doc/rpclib.json/Jsonrpc/index.html

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
OCaml

Innovation. Community. Security.