MCPcopy Create free account
hub / github.com/Danny-Dasilva/CycleTLS / processCookies

Function processCookies

examples/cookiejar.js:45–53  ·  view source on GitHub ↗
(response, url, cookieJar)

Source from the content-addressed store, hash-verified

43})();
44
45async function processCookies(response, url, cookieJar) {
46 if (response.headers["Set-Cookie"] instanceof Array) {
47 response.headers["Set-Cookie"].map(
48 async (cookieString) => await cookieJar.setCookie(cookieString, url)
49 );
50 } else {
51 await cookieJar.setCookie(response.headers["Set-Cookie"], url);
52 }
53}

Callers 1

cookiejar.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…