Skip to main content
Module

x/another_cookiejar/cookie_jar.ts>CookieJar#setCookie

https://deno.land/x/another_cookiejar
Go to Latest
method CookieJar.prototype.setCookie
import { CookieJar } from "https://deno.land/x/another_cookiejar@v4.1.4/cookie_jar.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