MCPcopy
hub / github.com/freshframework/fresh / get

Method get

packages/fresh/src/test_utils.ts:21–25  ·  view source on GitHub ↗
(path: string, init?: RequestInit)

Source from the content-addressed store, hash-verified

19 ) {}
20
21 async get(path: string, init?: RequestInit): Promise<Response> {
22 const url = this.toUrl(path);
23 const req = new Request(url, init);
24 return await this.handler(req, STUB);
25 }
26 async post(path: string, body?: BodyInit): Promise<Response> {
27 const url = this.toUrl(path);
28 const req = new Request(url, { method: "post", body });

Callers 1

[Symbol.asyncDispose]Function · 0.45

Calls 2

toUrlMethod · 0.95
handlerMethod · 0.80

Tested by

no test coverage detected