Skip to main content

SET_COOKIE

Constant SET_COOKIE 

Source
pub const SET_COOKIE: &str = "Network.setCookie";
Expand description

Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.

Parameters:

  • name: string
  • value: string
  • url: string (optional)
  • domain: string (optional)
  • path: string (optional)
  • secure: boolean (optional)
  • httpOnly: boolean (optional)
  • sameSite: CookieSameSite (optional)
  • expires: TimeSinceEpoch (optional)
  • priority: CookiePriority (optional)
  • sourceScheme: CookieSourceScheme (optional)
  • sourcePort: integer (optional)
  • partitionKey: CookiePartitionKey (optional)

Returns: success