MCPcopy Create free account
hub / github.com/jshttp/cookie / getSetCookies

Function getSetCookies

scripts/update-benchmark.ts:62–66  ·  view source on GitHub ↗
(domain: string)

Source from the content-addressed store, hash-verified

60}
61
62async function getSetCookies(domain: string) {
63 const href = url.format({ hostname: domain, protocol: "http" });
64 const res = await get(href);
65 return res.headers.getSetCookie();
66}
67
68function toCookies(setCookies: string[]) {
69 return setCookies.map((c) => c.split(";")[0]);

Callers 1

getAllCookiesFunction · 0.85

Calls 1

getFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…