pub fn parse_endpoint(
input: &str,
config: &Config,
) -> Result<Endpoint, ClientError>Expand description
Parse an endpoint string against the application’s Config (CLT-070).
Accepted forms:
scheme://host[:port]whereschemeisconfig.scheme; a missing port resolves toconfig.default_port(CLT-071).- bare
host:port(RPC implied). [v6::addr]:port/scheme://[v6::addr][:port]for IPv6 literals.
http:// / https:// are rejected: Thunder is RPC-only; REST
endpoints belong to the application’s HTTP client.