pub struct Args {Show 14 fields
pub listen: String,
pub profile: String,
pub display: Option<DisplayArg>,
pub takeover_provider: TakeoverProviderArg,
pub takeover_quality_percent: u8,
pub browser: BrowserArg,
pub browser_bin: Option<PathBuf>,
pub token: Option<String>,
pub no_health: bool,
pub health_public: HealthPublicArg,
pub engine_envs: Vec<String>,
pub browser_args: Vec<String>,
pub proxy: Option<String>,
pub recent_requests_cap: usize,
}Fields§
§listen: StringListener address: tcp:host:port or unix:/path/to.sock.
profile: StringInitial logical profile name, or - for an ephemeral profile.
Persistent profiles are stored under
$XDG_DATA_HOME/afhttp/profiles/?profile= on the /cdp connection (the browser is relaunched).
display: Option<DisplayArg>Display mode. Omit when --takeover-provider should imply headful.
takeover_provider: TakeoverProviderArgReal-display takeover provider: off serves no takeover surface; a
provider name (currently kasmvnc) serves a real-display takeover at
/takeover/panel for hard sites (captcha, IME, flaky CDP input —
implies headful).
takeover_quality_percent: u8Takeover-provider image quality hint, 0-100 percent (default 100 = crispest). The KasmVNC provider maps this to 0-9 quality tiers; lower trades clarity for bandwidth. Adjustable live in the display panel too.
browser: BrowserArgBrowser backend.
browser_bin: Option<PathBuf>Override browser binary path.
token: Option<String>Bearer token required for clients on TCP listeners.
no_health: boolDisable serving /health and /capabilities (served by default).
health_public: HealthPublicArgMake /health public with minimal payload.
engine_envs: Vec<String>Propagate an environment variable into the browser subprocess.
Repeatable. The host scrubs all other ambient env (HTTP_PROXY,
XDG_*, BROWSER, locale, etc.) so a browsing environment can
never silently honor configuration the agent did not request.
Use the form NAME=VALUE.
browser_args: Vec<String>Append a raw flag to the backend subprocess command line.
Repeatable. Use for backend-specific surfaces the host doesn’t
model first-class — for example
--browser-arg --fingerprint-brand=Chrome to override
fingerprint-chromium’s brand string. Chromium honors last-wins
for duplicate flags, so an explicit entry overrides any
default the host applied.
proxy: Option<String>Explicit upstream proxy URL. The host never inherits
HTTP_PROXY/HTTPS_PROXY from the environment — this is the
only way to route browser traffic. Example:
http://user:pass@proxy.local:8080 or socks5://10.0.0.5:1080.
recent_requests_cap: usizeEnable /recent-requests with a bounded ring of N entries. 0 = off.
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.