Mset
Bun

method

CookieMap.set

name: string,
value: string,
options?: CookieInit
): void;

Adds or updates a cookie in the map.

@param name

The name of the cookie

@param value

The value of the cookie

@param options

Optional cookie attributes

options: CookieInit
): void;

Adds or updates a cookie in the map using a cookie options object.

@param options

Cookie options including name and value

Referenced types

interface CookieInit