Skip to main content

Module endpoint

Module endpoint 

Source
Expand description

Endpoint URL parsing.

afhttp connects to a host over one of:

  • ws://host:port / wss://host:port — CDP over WebSocket (primary)
  • http://host:port / https://host:port — for /health, /capabilities, and the ops panel
  • unix:/path/to.sock — local-machine listener (Linux/macOS only)

The SDK accepts any of those forms and derives the others when needed (e.g. the HTTP base URL from a WS endpoint).

Enums§

Endpoint
Parsed endpoint. Round-trip-safe: any input that parses also formats back to the canonical string with [Endpoint::as_str].