MCPcopy Create free account
hub / github.com/pollinations/pollinations / headersFor

Function headersFor

apps/_scripts/deploy-app.js:49–52  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

47}
48
49const headersFor = (token) => ({
50 Authorization: `Bearer ${token}`,
51 "Content-Type": "application/json",
52});
53
54async function cf(url, headers, init = {}) {
55 const res = await fetch(url, { headers, ...init });

Callers 2

runOriginFunction · 0.85
runCutoverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected