MCPcopy Index your code
hub / github.com/codeaashu/claude-code / buildHeaders

Method buildHeaders

web/lib/api/client.ts:107–116  ·  view source on GitHub ↗
(extra?: Record<string, string>)

Source from the content-addressed store, hash-verified

105 }
106
107 private buildHeaders(extra?: Record<string, string>): Record<string, string> {
108 const headers: Record<string, string> = {
109 "Content-Type": "application/json",
110 ...extra,
111 };
112 if (this.apiKey) {
113 headers["Authorization"] = `Bearer ${this.apiKey}`;
114 }
115 return headers;
116 }
117
118 private async fetchWithRetry(
119 url: string,

Callers 1

requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected