Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method CookieJar.prototype.set
import { CookieJar } from "https://deno.land/x/cookies@1.0.0/mod.ts";

Sets a new cookie, if value is empty and there are no options the delete method is used instead. If any parameter is invalid it will throw a TypeError

Parameters

name: string

Cookie name

value: any

Cookie value

optional
options: CookieOptions