Skip to main content
Module

x/another_cookiejar/mod.ts>CookieJar#setCookie

https://deno.land/x/another_cookiejar
Go to Latest
method CookieJar.prototype.setCookie
Re-export
import { CookieJar } from "https://deno.land/x/another_cookiejar@v4.1.4/mod.ts";

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.

Parameters

optional
url: string | Request | URL