Module Dac_clic_helpers.Parsed_rpc

type t = private {
  1. scheme : string;
  2. host : string;
  3. port : int;
}
val of_string : string -> (t, [> `Parse_rpc_error of string ]) Stdlib.result

of_string raw_rpc tries to parse raw_rpc as a Parsed_rpc.t. The default scheme for ip addresses is `http` which can be overidden by prefixing the desired scheme. Examples of supported address strings are: * 127.0.0.1:10832 * http://example.com * http://example.com:10832 * https://example.com * https://example.come:10832