Skip to main content

Module ids

Module ids 

Source
Expand description

Newtype wrappers for identifiers used across the protocol — request IDs returned to the agent, tab IDs scoped to a host’s browser, and profile names. Each type owns its own validation/generation so we can’t accidentally pass a profile name where a tab ID is expected.

Structs§

RequestId
A per-fetch identifier, generated by the SDK on each Client::fetch(...). Goes into the response request_id field and into the default --out path ($TMPDIR/afhttp-out/<request_id>/, platform equivalent).
TabId
A browser tab identifier, assigned by the host’s CDP target manager. Architecture.md §5 (--tab new|<id>) makes this the unit of fetch affinity for reusing browser state across requests.