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 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 or kasmvnc.
off serves no takeover surface; kasmvnc serves a real-display
takeover at /takeover/panel for captcha, IME, or flaky CDP input and
implies headful mode.
takeover_quality_percent: u8Takeover image quality hint, from 0 to 100 percent.
The default 100 is crispest. KasmVNC maps this to 0-9 quality tiers; lower values trade clarity for bandwidth and can be adjusted live.
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>Set a browser subprocess environment variable (repeatable).
The host scrubs all other ambient variables (HTTP_PROXY, XDG_*,
BROWSER, locale, etc.) so browsing never silently honors unrequested
configuration. Use NAME=VALUE.
browser_args: Vec<String>Append a raw browser backend flag (repeatable).
Use for backend-specific surfaces not modeled first-class. For example,
--browser-arg --fingerprint-brand=Chrome overrides
fingerprint-chromium’s brand string. Chromium uses the last duplicate
flag, so an explicit entry overrides a host default.
proxy: Option<String>Explicit upstream browser proxy URL.
The host never inherits ambient HTTP_PROXY/HTTPS_PROXY; this is the
only proxy route. For 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.