MCPcopy Create free account
hub / github.com/zenstackhq/zenstack / makeRequest

Function makeRequest

packages/server/test/adapter/tanstack-start.test.ts:7–10  ·  view source on GitHub ↗
(method: string, url: string, body?: any)

Source from the content-addressed store, hash-verified

5import { RestApiHandler, RPCApiHandler } from '../../src/api';
6
7function makeRequest(method: string, url: string, body?: any): Request {
8 const payload = body ? JSON.stringify(body) : undefined;
9 return new Request(url, { method, body: payload });
10}
11
12async function unmarshal(response: Response): Promise<any> {
13 const text = await response.text();

Callers 1

executeRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected