Module Client.Make

Parameters

module P : PARAMS

Signature

module IO = P.IO
type client = P.client
val call : ?encoding:[ `JSON | `BINARY ] -> ?prefix:string option -> ?headers:Common.headers -> base_url:string -> client -> ('req, Pbrt_services.Value_mode.unary, 'res, Pbrt_services.Value_mode.unary) Pbrt_services.Client.rpc -> 'req -> ('res, Common.error) result IO.t

Make a RPC call.

  • parameter base_url

    replaces host+port+use_tls with a http(s) URL. See Common.base_url to get it from host+port+use_tls. since NEXT_RELEASE.