constructor
bun.CookieMap.constructor
constructor CookieMap(
init?: string | string[][] | Record<string, string>
Creates a new CookieMap instance.
@param init
Optional initial data for the cookie map:
- string: A cookie header string (e.g., "name=value; foo=bar")
- string[][]: An array of name/value pairs (e.g., [["name", "value"], ["foo", "bar"]])
- Record<string, string>: An object with cookie names as keys (e.g., { name: "value", foo: "bar" })