MCPcopy Create free account
hub / github.com/Effect-TS/effect / request

Function request

scripts/effect-bot.mjs:43–47  ·  view source on GitHub ↗
(url, init)

Source from the content-addressed store, hash-verified

41 "Content-Type": "application/json"
42 }
43 const request = (url, init) => fetch(url, {
44 ...init,
45 redirect: "error",
46 signal: AbortSignal.timeout(30_000)
47 })
48 const githubBase = `https://api.github.com/repos/${repo}`
49 const permission = await request(`${githubBase}/collaborators/${encodeURIComponent(author)}/permission`, {
50 headers: githubHeaders

Callers 1

relayCommentFunction · 0.70

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected