Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/another_cookiejar/CookieJar.ts>CookieJar#getCookies

https://deno.land/x/another_cookiejar
Go to Latest
method CookieJar.prototype.getCookies
import { CookieJar } from "https://deno.land/x/another_cookiejar@v2.2.1/CookieJar.ts";

returnes cookies that matches the options excluding expired ones, also removes expired cookies before returning.

Parameters

optional
options: CookieOptions | Cookie
  • the options to filter cookies with, and if not provided, returnes all cookies. if no cookie is found with given options, an empty array is returned.