pub struct CreateSessionOptions {
pub profile_id: Option<String>,
pub recording: bool,
pub stealth: bool,
pub captcha: bool,
pub proxy: Option<ProxySpec>,
pub timeout_seconds: Option<u32>,
pub keep_alive: bool,
pub user_metadata: Option<Map<String, Value>>,
}Expand description
Options accepted by POST /sessions.
Falsy fields are omitted from the request body; if every field is falsy the request is sent with no body at all.
Fields§
§profile_id: Option<String>Attach a stored browser profile (cookies + localStorage).
recording: boolEnable session recording. Off by default.
stealth: boolEnable the runtime stealth shim. Off by default.
captcha: boolEnable managed captcha solving. Requires stealth.
proxy: Option<ProxySpec>Request managed proxy egress. Requires stealth.
timeout_seconds: Option<u32>End the session earlier than the plan maximum. None leaves the plan
maximum; the gateway refuses anything under 60.
keep_alive: boolHold the session after the client disconnects, until its deadline
(timeout_seconds, else an hour, never past the plan maximum) or until
it is released, so a dropped client can reconnect.
user_metadata: Option<Map<String, Value>>Free-form JSON stored with the session and returned by get and list.