Expand description
Canonical URL parser for the SDK’s connection string.
The contract (from every phase6_sdk-*-rpc/proposal.md):
vectorizer://host:port→ RPC on the given port.vectorizer://host(no port) → RPC on default port 15503.host:port(no scheme) → RPC.http://host:port/https://host:port→ REST (legacy fallback).- Anything else →
ParseError::UnsupportedScheme.
URLs that carry credentials in the userinfo (user:pass@host) are
REJECTED — credentials cross the wire in the HELLO handshake, NOT
in the URL. This avoids accidentally logging or shell-history-saving
a token-bearing URL.
Enums§
- Endpoint
- A parsed endpoint; what transport to use and where to connect.
- Parse
Error - Reasons
parse_endpointcan fail.
Constants§
- DEFAULT_
HTTP_ PORT - Default REST port (matches
ServerConfig::default()in the server crate). - DEFAULT_
RPC_ PORT - Default RPC port (matches
RpcConfig::default_port()in the server crate). Documented in wire spec § 12.
Functions§
- parse_
endpoint - Parse a connection string into a typed
Endpoint.