import { CookieJar } from "https://deno.land/x/another_cookiejar@v2.2.1/CookieJar.ts";
Constructors
Methods
Gets the first cooking matching the defined properties of a given Cookie or CookieOptions.
returns undefined if not found or expired. creationDate
prop is not checked.
Also removes the cookie and returns undefined if cookie is expired.
returnes cookies that matches the options excluding expired ones, also removes expired cookies before returning.
Removes first cookie that matches the given option.
Returns the deleted cookie if found or undefined otherwise.
Removes all cookies that matches the given option. If options is not given, all cookies will be deleted.
Returns the deleted cookies if found or undefined otherwise.
Sets or replaces a cookie inside the jar. Only sets new cookies if cookie is valid and not expired. Validation and expiration checks are not run when replacing a cookie.