Files
graphify/tests/fixtures/sample.ts
T
Safi e7a03a0539 feat: cache, multi-language extraction, MCP, memory feedback
call-graph INFERRED edges, multi-language semantic extraction, SHA256 cache,
MCP stdio server with shortest_path, Q&A memory feedback loop
2026-04-04 18:56:38 +01:00

24 lines
517 B
TypeScript

import { Response } from './models';
class HttpClient {
private baseUrl: string;
constructor(baseUrl: string) {
this.baseUrl = baseUrl;
}
async get(path: string): Promise<Response> {
return fetch(this.baseUrl + path);
}
async post(path: string, body: unknown): Promise<Response> {
return this.get(path);
}
}
function buildHeaders(token: string): Record<string, string> {
return { Authorization: `Bearer ${token}` };
}
export { HttpClient, buildHeaders };