MCPcopy
hub / github.com/codeaashu/claude-code / processRateLimitHeaders

Function processRateLimitHeaders

src/services/rateLimitMocking.ts:19–27  ·  view source on GitHub ↗
(
  headers: globalThis.Headers,
)

Source from the content-addressed store, hash-verified

17 * Process headers, applying mocks if /mock-limits command is active
18 */
19export function processRateLimitHeaders(
20 headers: globalThis.Headers,
21): globalThis.Headers {
22 // Only apply mocks for Ant employees using /mock-limits command
23 if (shouldProcessMockLimits()) {
24 return applyMockHeaders(headers)
25 }
26 return headers
27}
28
29/**
30 * Check if we should process rate limits (either real subscriber or /mock-limits command)

Callers 2

Calls 2

shouldProcessMockLimitsFunction · 0.85
applyMockHeadersFunction · 0.85

Tested by

no test coverage detected