MCPcopy
hub / github.com/eggjs/egg / curl

Method curl

src/lib/egg.ts:697–697  ·  view source on GitHub ↗
(url: HttpClientRequestURL, options?: HttpClientRequestOptions)

Source from the content-addressed store, hash-verified

695 HttpClient: typeof HttpClient;
696 get httpClient(): HttpClient;
697 curl<T = any>(url: HttpClientRequestURL, options?: HttpClientRequestOptions): Promise<HttpClientResponse<T>>;
698 createAnonymousContext(req?: any): EggContext;
699 runInAnonymousContextScope(scope: (ctx: Context) => Promise<void>, req?: unknown): Promise<void>;
700 readonly messenger: IMessenger;

Callers 15

helloFunction · 0.65
httpclient.test.tsFile · 0.65
context.test.tsFile · 0.65
requestWithHttpclientMethod · 0.65
httpclientMethod · 0.65
testMethod · 0.65
testMethod · 0.65

Calls

no outgoing calls

Tested by 2

testMethod · 0.52
testMethod · 0.52