MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / buildConsoleVersionHeaders

Function buildConsoleVersionHeaders

console/src/api/apiClient.ts:45–53  ·  view source on GitHub ↗
(
  currentConsoleVersion: string,
)

Source from the content-addressed store, hash-verified

43const globalFetch = (...req: Parameters<Fetch>) => fetch(...req);
44
45function buildConsoleVersionHeaders(
46 currentConsoleVersion: string,
47): Record<string, string> {
48 return currentConsoleVersion && currentConsoleVersion.length > 0
49 ? {
50 "X-MATERIALIZE-VERSION": currentConsoleVersion,
51 }
52 : {};
53}
54
55// User and password used to connect to Materialize during flexible deployment mode.
56// These are required fields for the Websocket API for self-managed without auth.

Callers 1

CloudApiClientClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected