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

Function get

scripts/update-benchmark.ts:33–41  ·  view source on GitHub ↗
(href: string)

Source from the content-addressed store, hash-verified

31main();
32
33async function get(href: string) {
34 const res = await fetch(href);
35 const location = res.headers.get("location");
36 if (location && res.status >= 300 && res.status < 400) {
37 return get(new URL(location, href).href);
38 }
39
40 return res;
41}
42
43async function getAllCookies(domains: string[]) {
44 const allCookies: Record<string, string> = Object.create(null);

Callers 1

getSetCookiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected