Skip to main content

Module endpoint

Module endpoint 

Source
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.
ParseError
Reasons parse_endpoint can 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.