MCPcopy Create free account
hub / github.com/anus-dev/ANUS / requestGet

Method requestGet

packages/core/src/code_assist/server.ts:159–171  ·  view source on GitHub ↗
(method: string, signal?: AbortSignal)

Source from the content-addressed store, hash-verified

157 }
158
159 async requestGet<T>(method: string, signal?: AbortSignal): Promise<T> {
160 const res = await this.client.request({
161 url: this.getMethodUrl(method),
162 method: 'GET',
163 headers: {
164 'Content-Type': 'application/json',
165 ...this.httpOptions.headers,
166 },
167 responseType: 'json',
168 signal,
169 });
170 return res.data as T;
171 }
172
173 async requestStreamingPost<T>(
174 method: string,

Callers

nothing calls this directly

Calls 1

getMethodUrlMethod · 0.95

Tested by

no test coverage detected