MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / getHeaders

Function getHeaders

zpr/zpr.ts:45–56  ·  view source on GitHub ↗
(proxyHost: string)

Source from the content-addressed store, hash-verified

43 if (proxyHost === "i.pximg.net") {
44 return {
45 ...baseHeaders,
46 "Host": proxyHost,
47 "Referer": "https://www.pixiv.net/"
48 };
49 }
50
51 return baseHeaders;
52};
53
54const dataPath = createDirectoryInAssets("zpr");
55
56async function lifecycleDelay(ms: number, label: string): Promise<void> {
57 const lifecycle = tryGetCurrentGenerationContext();
58 if (lifecycle) {
59 await lifecycle.delay(ms, { label });

Callers 1

downloadSingleImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected