Skip to main content

parse_endpoint

Function parse_endpoint 

Source
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] where scheme is config.scheme; a missing port resolves to config.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.