MCPcopy Create free account
hub / github.com/CopilotKit/aimock / strictOverrideField

Function strictOverrideField

src/helpers.ts:60–69  ·  view source on GitHub ↗
(
  serverDefault: boolean | undefined,
  rawHeaders?: IncomingHttpHeaders,
)

Source from the content-addressed store, hash-verified

58 * response: { status, fixture, ...strictOverrideField(defaults.strict, req.headers) }
59 */
60export function strictOverrideField(
61 serverDefault: boolean | undefined,
62 rawHeaders?: IncomingHttpHeaders,
63): { strictOverride?: boolean } {
64 const effective = resolveStrictMode(serverDefault, rawHeaders);
65 if (effective !== (serverDefault ?? false)) {
66 return { strictOverride: effective };
67 }
68 return {};
69}
70
71/**
72 * Build the strict-mode 503 error message, distinguishing a true no-match from

Callers 15

proxyErrorFunction · 0.85
journalProxyFunction · 0.85
handleVideoCreateFunction · 0.85
handleOllamaFunction · 0.85
handleOllamaGenerateFunction · 0.85
handleOllamaEmbeddingsFunction · 0.85

Calls 1

resolveStrictModeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…