pub struct HostArgs {Show 15 fields
pub listen: String,
pub profile: ProfileChoice,
pub display: DisplayMode,
pub takeover: Takeover,
pub display_quality: u8,
pub browser: BrowserChoice,
pub browser_bin: Option<PathBuf>,
pub token: Option<String>,
pub takeover_enabled: bool,
pub health_enabled: bool,
pub health_public: HealthPublic,
pub engine_envs: Vec<(String, String)>,
pub browser_args: Vec<String>,
pub proxy: Option<String>,
pub recent_requests_cap: usize,
}Expand description
Parsed command-line arguments for afhttp host. The CLI layer in
cli::cmd::host builds this struct from a resolved CLI invocation.
Fields§
§listen: String§profile: ProfileChoiceThe single browsing identity bound to this host.
display: DisplayMode§takeover: Takeover§display_quality: u8Display-provider image quality as a percentage (0-100). Higher is crisper but uses more bandwidth. Current KasmVNC provider maps this to its 0-9 quality tiers.
browser: BrowserChoice§browser_bin: Option<PathBuf>§token: Option<String>§takeover_enabled: bool§health_enabled: bool§health_public: HealthPublic§engine_envs: Vec<(String, String)>Explicit environment variables to propagate into the backend
subprocess. The host never silently forwards the parent process’s
HTTP_PROXY, XDG_*, BROWSER, etc. — agents that genuinely
need an env var inside the browser pass it here.
browser_args: Vec<String>Raw command-line arguments appended to the backend subprocess
after the host’s curated defaults. Used for backend-specific
surfaces the host does not model first-class (e.g.
--fingerprint-brand=Chrome for fingerprint-chromium). Chromium
honors last-wins for duplicate flags, so an explicit entry here
overrides any default the host applied.
proxy: Option<String>Explicit upstream HTTP/HTTPS proxy for all browser traffic in
this host instance. Per the isolation invariant
(design.md “Browsing environments are isolated”), the host
never honors ambient HTTP_PROXY/HTTPS_PROXY — this flag is
the ONLY way to route browser traffic through a proxy.
Format: http://user:pass@host:port or socks5://host:port.
recent_requests_cap: usizeMaximum number of recent requests to keep in the ring. 0 (default)
disables the /recent-requests endpoint entirely.