pub struct Args {Show 15 fields
pub listen: String,
pub profile: String,
pub display: Option<String>,
pub takeover: String,
pub display_provider: Option<String>,
pub display_quality: u8,
pub browser: String,
pub browser_bin: Option<PathBuf>,
pub token: Option<String>,
pub health: String,
pub health_public: String,
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: StringProfile name under $XDG_DATA_HOME/afhttp/profiles, or - for an
ephemeral profile. One host binds exactly one profile.
display: Option<String>headless or headful. Omit when –takeover display should imply headful.
takeover: StringHuman takeover mode (like –render, pick one): none serves no takeover panel; screencast serves the CDP screencast panel at /ops/screencast (works headless, no VNC/X needed); display serves a real-display takeover at /ops/display through a display provider (currently KasmVNC) for hard sites (captcha, IME, flaky CDP input — implies headful).
display_provider: Option<String>Display provider for --takeover display. Currently only kasmvnc is
supported and it is the default when display takeover is selected.
display_quality: u8Display-provider image quality hint, 0-100 (default 100 = crispest). Current KasmVNC provider maps this to 0-9 quality tiers; lower trades clarity for bandwidth. Adjustable live in the display panel too.
browser: Stringauto | chromium | chrome | chrome_shell | fingerprint_chromium | edge | brave | lightpanda | camoufox.
browser_bin: Option<PathBuf>Override browser binary path.
token: Option<String>Bearer token required for clients on TCP listeners.
health: StringServe /health and /capabilities.
health_public: StringMake /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 K=V.
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.