MCPcopy Index your code
hub / github.com/solidjs/solid-start / createRequest

Function createRequest

packages/start/src/fns/client.ts:15–25  ·  view source on GitHub ↗
(base: string, id: string, instance: string, options: RequestInit)

Source from the content-addressed store, hash-verified

13let INSTANCE = 0;
14
15function createRequest(base: string, id: string, instance: string, options: RequestInit) {
16 return fetch(base, {
17 method: "POST",
18 ...options,
19 headers: {
20 ...options.headers,
21 "X-Server-Id": id,
22 "X-Server-Instance": instance,
23 },
24 });
25}
26
27async function initializeResponse(
28 base: string,

Callers 1

initializeResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…