(key: string)
| 1122 | const headerNames = resolveRateLimiterHeaderNames(options.responseHeaders) |
| 1123 | |
| 1124 | const getState = (key: string): RateLimiterState => { |
| 1125 | const current = states.get(key) |
| 1126 | if (current !== undefined) { |
| 1127 | return current |
| 1128 | } |
| 1129 | states.set(key, initialState) |
| 1130 | return initialState |
| 1131 | } |
| 1132 | |
| 1133 | const onResponse = options.disableResponseInspection |
| 1134 | ? undefined |
no test coverage detected