( headers: globalThis.Headers, )
| 17 | * Process headers, applying mocks if /mock-limits command is active |
| 18 | */ |
| 19 | export 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) |
no test coverage detected