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

Method post

packages/fresh/src/test_utils.ts:26–30  ·  view source on GitHub ↗
(path: string, body?: BodyInit)

Source from the content-addressed store, hash-verified

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 });
29 return await this.handler(req, STUB);
30 }
31 async patch(path: string, body?: BodyInit): Promise<Response> {
32 const url = this.toUrl(path);
33 const req = new Request(url, { method: "patch", body });

Callers

nothing calls this directly

Calls 2

toUrlMethod · 0.95
handlerMethod · 0.80

Tested by

no test coverage detected