MCPcopy
hub / github.com/ericc-ch/copilot-api / standardHeaders

Function standardHeaders

src/lib/api-config.ts:5–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import type { State } from "./state"
4
5export const standardHeaders = () => ({
6 "content-type": "application/json",
7 accept: "application/json",
8})
9
10const COPILOT_VERSION = "0.26.7"
11const EDITOR_PLUGIN_VERSION = `copilot-chat/${COPILOT_VERSION}`

Callers 5

getDeviceCodeFunction · 0.90
pollAccessTokenFunction · 0.90
getGitHubUserFunction · 0.90
copilotHeadersFunction · 0.85
githubHeadersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…