import { CookieJar } from "https://deno.land/x/cookies@1.0.0/mod.ts";
Cookie manager for Deno built on top of the Map built-in collection
Constructors
Methods
Clears all the set cookies. Will not guarantee all cookies to be deleted, as some might have special parameters set. If this is the case use the delete method with same value in the parameters: path, domain, secure, httpOnly, sameSite.
Deletes a specific cookie. Will not guarantee all cookies to be deleted, as some might have special parameters set. If this is the case use the delete method with same value in the parameters: path, domain, secure, httpOnly, sameSite.
Gets a cookie, Only sets cookie if overwrite is false or doesn't already exist
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